runit, runsv, runsvdir, runsvchdir, sv: add more information link and move to common/ (#5648)

This commit is contained in:
marchersimon
2021-03-31 12:52:31 +02:00
committed by GitHub
parent b02c9f5a25
commit d562842e08
22 changed files with 17 additions and 141 deletions

12
pages/common/runit.md Normal file
View File

@@ -0,0 +1,12 @@
# runit
> 3-stage init system.
> More information: <https://wiki.archlinux.org/index.php/Runit>.
- Start runit's 3-stage init scheme:
`runit`
- Shut down runit:
`kill --CONT {{runit_pid}}`

12
pages/common/runsv.md Normal file
View File

@@ -0,0 +1,12 @@
# runsv
> Start and manage a runit service.
> More information: <https://manpages.ubuntu.com/manpages/latest/man8/runsv.8.html>.
- Start a runit service as the current user:
`runsv {{path/to/service}}`
- Start a runit service as root:
`sudo runsv {{path/to/service}}`

View File

@@ -0,0 +1,8 @@
# runsvchdir
> Change the directory `runsvdir` uses by default.
> More information: <https://manpages.ubuntu.com/manpages/latest/man8/runsvchdir.8.html>.
- Switch `runsvdir` directories:
`sudo runsvchdir {{path/to/directory}}`

16
pages/common/runsvdir.md Normal file
View File

@@ -0,0 +1,16 @@
# runsvdir
> Run an entire directory of services.
> More information: <https://manpages.ubuntu.com/manpages/latest/man8/runsvdir.8.html>.
- Start and manage all services in a directory as the current user:
`runsvdir {{path/to/services}}`
- Start and manage all services in a directory as root:
`sudo runsvdir {{path/to/services}}`
- Start services in separate sessions:
`runsvdir -P {{path/to/services}}`

16
pages/common/sv.md Normal file
View File

@@ -0,0 +1,16 @@
# sv
> Control a running runsv service.
> More information: <https://manpages.ubuntu.com/manpages/latest/man8/sv.8.html>.
- 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}}`