2017-12-18 15:42:19 +00:00
|
|
|
# sv
|
|
|
|
|
|
|
|
> Control a running runsv service.
|
2021-03-31 11:52:31 +01:00
|
|
|
> More information: <https://manpages.ubuntu.com/manpages/latest/man8/sv.8.html>.
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2017-12-18 16:01:16 +00:00
|
|
|
- Start a service:
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2018-01-06 15:58:50 +00:00
|
|
|
`sudo sv up {{path/to/service}}`
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2017-12-18 16:01:16 +00:00
|
|
|
- Stop a service:
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2018-01-06 15:58:50 +00:00
|
|
|
`sudo sv down {{path/to/service}}`
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2017-12-18 16:01:16 +00:00
|
|
|
- Get service status:
|
2017-12-18 15:42:19 +00:00
|
|
|
|
2018-01-06 15:58:50 +00:00
|
|
|
`sudo sv status {{path/to/service}}`
|
2021-07-24 20:12:04 +01:00
|
|
|
|
|
|
|
- Reload a service:
|
|
|
|
|
|
|
|
`sudo sv reload {{path/to/service}}`
|
|
|
|
|
|
|
|
- Start a service, but only if it's not running and don't restart it if it stops:
|
|
|
|
|
|
|
|
`sudo sv once {{path/to/service}}`
|