https://github.com/apsislabs/runner
https://github.com/apsislabs/runner
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apsislabs/runner
- Owner: apsislabs
- Created: 2020-01-16T00:18:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-13T16:12:09.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T09:13:41.602Z (5 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`runner` is a simple utility that will run a given command, then run forever and can be signalled to start/stop/restart the given command.
## Motivation
This was mostly written as an exercise to play with rust, but it's also useful in docker-compose environments where you have a server that you may want to restart without shutting down the container.
## Example:
1. `runner serve app sleep 100000` # starts sleeping forever
from a different tab:
1. `runner stop app` # stops the sleep process
1. `runner start app` # starts the sleep process
1. `runner start app` # does nothing, because the sleep process is already running
1. `runner restart app` # stops and then starts the sleep process## Building
`cargo build`
## Building Releases
Note: Releases must be built from x86_64-apple-darwin environments.
1. `cargo bump --git-tag`
1. `bin/build-releases`
1. `git put --tag`
1. go to github and create a release. Upload the binaries in `releases/{version}` to the release