From bf5abe64a73ff306daf3cca29f318d3fb7befa18 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Tue, 21 Nov 2006 15:14:05 +0000 Subject: html. --- doc/runsv.8.html | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) (limited to 'doc') diff --git a/doc/runsv.8.html b/doc/runsv.8.html index 27c6423..91646e8 100644 --- a/doc/runsv.8.html +++ b/doc/runsv.8.html @@ -110,34 +110,33 @@ Example: to send a TERM signal to the socklog-unix service, either do # sv term /var/service/socklog-unix
or
- # echo -n t >/var/service/socklog-unix/supervise/control
+ # printf t >/var/service/socklog-unix/supervise/control

-If echo(1) on your systems does not provide the -n option, leave it out, -runsv ignores unknown characters written to the control pipe. echo(1) usually -blocks if no runsv process is running in the service directory. -

Customize -Control

-For each control character c sent to the control pipe, runsv first -checks if service/control/c exists and is executable. If so, it starts service/control/c -and waits for it to terminate, before interpreting the command. If the program -exits with return code 0, runsv refrains from sending the service the corresponding -signal. The command o is always considered as command u. On command d first -service/control/t is checked, and then service/control/d. On command x first -service/control/t is checked, and then service/control/x. The control of -the optional log service cannot be customized. +printf(1) usually blocks if no runsv process is running in the service +directory. +

Customize Control

+For each control character c sent to the control +pipe, runsv first checks if service/control/c exists and is executable. +If so, it starts service/control/c and waits for it to terminate, before +interpreting the command. If the program exits with return code 0, runsv +refrains from sending the service the corresponding signal. The command +o is always considered as command u. On command d first service/control/t +is checked, and then service/control/d. On command x first service/control/t +is checked, and then service/control/x. The control of the optional log +service cannot be customized.

Signals

-If runsv receives -a TERM signal, it acts as if the character x was written to the control -pipe. +If runsv receives a TERM signal, it +acts as if the character x was written to the control pipe.

Exit Codes

-runsv exits 111 on an error on startup or if another runsv -is running in service.

+runsv +exits 111 on an error on startup or if another runsv is running in service. +

runsv exits 0 if it was told to exit.

See Also

-sv(8), -chpst(8), svlogd(8), runit(8), runit-init(8), runsvdir(8), runsvchdir(8), -utmpset(8)

-http://smarden.org/runit/ +sv(8), chpst(8), svlogd(8), +runit(8), runit-init(8), runsvdir(8), runsvchdir(8), utmpset(8)

+http://smarden.org/runit/ +

Author

Gerrit Pape <pape@smarden.org>

-- cgit 1.4.1