diff --git a/pages/linux/runit.md b/pages/linux/runit.md new file mode 100644 index 000000000..841092117 --- /dev/null +++ b/pages/linux/runit.md @@ -0,0 +1,11 @@ +# runit + +> 3-stage init system. + +- Start runit's 3-stage init scheme: + +`runit` + +- Shut down runit: + +`kill --CONT {{runit_pid}}` diff --git a/pages/linux/runsv.md b/pages/linux/runsv.md new file mode 100644 index 000000000..8b131ae6a --- /dev/null +++ b/pages/linux/runsv.md @@ -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}}` diff --git a/pages/linux/runsvchdir.md b/pages/linux/runsvchdir.md new file mode 100644 index 000000000..91ee11444 --- /dev/null +++ b/pages/linux/runsvchdir.md @@ -0,0 +1,7 @@ +# runsvchdir + +> Change the directory `runsvdir` uses by default. + +- Switch `runsvdir` directories: + +`sudo runsvchdir {{/path/to/directory}}` diff --git a/pages/linux/runsvdir.md b/pages/linux/runsvdir.md new file mode 100644 index 000000000..bc1ad17b1 --- /dev/null +++ b/pages/linux/runsvdir.md @@ -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}}` diff --git a/pages/linux/sv.md b/pages/linux/sv.md new file mode 100644 index 000000000..0567e0d0c --- /dev/null +++ b/pages/linux/sv.md @@ -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}}` diff --git a/pages/osx/runit.md b/pages/osx/runit.md new file mode 100644 index 000000000..841092117 --- /dev/null +++ b/pages/osx/runit.md @@ -0,0 +1,11 @@ +# runit + +> 3-stage init system. + +- Start runit's 3-stage init scheme: + +`runit` + +- Shut down runit: + +`kill --CONT {{runit_pid}}` diff --git a/pages/osx/runsv.md b/pages/osx/runsv.md new file mode 100644 index 000000000..8b131ae6a --- /dev/null +++ b/pages/osx/runsv.md @@ -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}}` diff --git a/pages/osx/runsvchdir.md b/pages/osx/runsvchdir.md new file mode 100644 index 000000000..91ee11444 --- /dev/null +++ b/pages/osx/runsvchdir.md @@ -0,0 +1,7 @@ +# runsvchdir + +> Change the directory `runsvdir` uses by default. + +- Switch `runsvdir` directories: + +`sudo runsvchdir {{/path/to/directory}}` diff --git a/pages/osx/runsvdir.md b/pages/osx/runsvdir.md new file mode 100644 index 000000000..bc1ad17b1 --- /dev/null +++ b/pages/osx/runsvdir.md @@ -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}}` diff --git a/pages/osx/sv.md b/pages/osx/sv.md new file mode 100644 index 000000000..0567e0d0c --- /dev/null +++ b/pages/osx/sv.md @@ -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}}` diff --git a/pages/sunos/runit.md b/pages/sunos/runit.md new file mode 100644 index 000000000..841092117 --- /dev/null +++ b/pages/sunos/runit.md @@ -0,0 +1,11 @@ +# runit + +> 3-stage init system. + +- Start runit's 3-stage init scheme: + +`runit` + +- Shut down runit: + +`kill --CONT {{runit_pid}}` diff --git a/pages/sunos/runsv.md b/pages/sunos/runsv.md new file mode 100644 index 000000000..8b131ae6a --- /dev/null +++ b/pages/sunos/runsv.md @@ -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}}` diff --git a/pages/sunos/runsvchdir.md b/pages/sunos/runsvchdir.md new file mode 100644 index 000000000..91ee11444 --- /dev/null +++ b/pages/sunos/runsvchdir.md @@ -0,0 +1,7 @@ +# runsvchdir + +> Change the directory `runsvdir` uses by default. + +- Switch `runsvdir` directories: + +`sudo runsvchdir {{/path/to/directory}}` diff --git a/pages/sunos/runsvdir.md b/pages/sunos/runsvdir.md new file mode 100644 index 000000000..bc1ad17b1 --- /dev/null +++ b/pages/sunos/runsvdir.md @@ -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}}` diff --git a/pages/sunos/sv.md b/pages/sunos/sv.md new file mode 100644 index 000000000..0567e0d0c --- /dev/null +++ b/pages/sunos/sv.md @@ -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}}`