spv: a minimalist, unix-inspired process supervisor for linux
- Does only one thing: supervise a child process
- Zero-config
- Handles child stdout and stderr
The <CMD> argument is used as an identifier to manage your supervised processes. This means the same command you start with is used to reference it for all other operations.
spv start sleep 1000Then you can manage it with the <CMD> argument:
spv logs sleep
spv restart sleep
spv stop sleepIf you need to supervise more than one instance of the same command, use the --id flag to give each instance a unique identifier:
spv start --id sleep_1 sleep 1000
spv start --id sleep_2 sleep 1000Now you can manage them individually:
spv stop sleep_1
spv logs sleep_2cargo install spvOr build from source:
git clone https://github.com/juantascon/spv.git
cd spv
cargo install --path .