1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 15:53:34 +02:00

runit: add pages (#1819)

This commit is contained in:
Starbeamrainbowlabs 2018-01-07 18:39:01 +00:00 committed by GitHub
commit 13b843557b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 177 additions and 0 deletions

11
pages/linux/runit.md Normal file
View file

@ -0,0 +1,11 @@
# runit
> 3-stage init system.
- Start runit's 3-stage init scheme:
`runit`
- Shut down runit:
`kill --CONT {{runit_pid}}`

11
pages/linux/runsv.md Normal file
View file

@ -0,0 +1,11 @@
# runsv
> Start and manage a runit service.
- 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,7 @@
# runsvchdir
> Change the directory `runsvdir` uses by default.
- Switch `runsvdir` directories:
`sudo runsvchdir {{/path/to/directory}}`

15
pages/linux/runsvdir.md Normal file
View file

@ -0,0 +1,15 @@
# runsvdir
> Run an entire directory of services.
- 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}}`

15
pages/linux/sv.md Normal file
View file

@ -0,0 +1,15 @@
# sv
> Control a running runsv service.
- 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}}`

11
pages/osx/runit.md Normal file
View file

@ -0,0 +1,11 @@
# runit
> 3-stage init system.
- Start runit's 3-stage init scheme:
`runit`
- Shut down runit:
`kill --CONT {{runit_pid}}`

11
pages/osx/runsv.md Normal file
View file

@ -0,0 +1,11 @@
# runsv
> Start and manage a runit service.
- Start a runit service as the current user:
`runsv {{path/to/service}}`
- Start a runit service as root:
`sudo runsv {{path/to/service}}`

7
pages/osx/runsvchdir.md Normal file
View file

@ -0,0 +1,7 @@
# runsvchdir
> Change the directory `runsvdir` uses by default.
- Switch `runsvdir` directories:
`sudo runsvchdir {{/path/to/directory}}`

15
pages/osx/runsvdir.md Normal file
View file

@ -0,0 +1,15 @@
# runsvdir
> Run an entire directory of services.
- 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}}`

15
pages/osx/sv.md Normal file
View file

@ -0,0 +1,15 @@
# sv
> Control a running runsv service.
- 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}}`

11
pages/sunos/runit.md Normal file
View file

@ -0,0 +1,11 @@
# runit
> 3-stage init system.
- Start runit's 3-stage init scheme:
`runit`
- Shut down runit:
`kill --CONT {{runit_pid}}`

11
pages/sunos/runsv.md Normal file
View file

@ -0,0 +1,11 @@
# runsv
> Start and manage a runit service.
- 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,7 @@
# runsvchdir
> Change the directory `runsvdir` uses by default.
- Switch `runsvdir` directories:
`sudo runsvchdir {{/path/to/directory}}`

15
pages/sunos/runsvdir.md Normal file
View file

@ -0,0 +1,15 @@
# runsvdir
> Run an entire directory of services.
- 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}}`

15
pages/sunos/sv.md Normal file
View file

@ -0,0 +1,15 @@
# sv
> Control a running runsv service.
- 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}}`