HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sv — Control a running runsv service. More information: <https://manned.org/sv>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
svcommandclirunsvrunningcontrolservicemore

Problem

How to use the sv command: Control a running runsv service. More information: <https://manned.org/sv>.

Solution

sv — Control a running runsv service. More information: <https://manned.org/sv>.

Start a service:
sudo sv up {{path/to/service}}


Stop a service:
sudo sv down {{path/to/service}}


Get service status:
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}}

Code Snippets

Start a service

sudo sv up {{path/to/service}}

Stop a service

sudo sv down {{path/to/service}}

Get service status

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}}

Context

tldr-pages: common/sv

Revisions (0)

No revisions yet.