tldr/pages/common/sv.md

25 lines
471 B
Markdown
Raw Permalink Normal View History

2017-12-18 15:42:19 +00:00
# sv
> Control a running runsv service.
> 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}}`
- 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}}`