From af4f84fb543641fbd8ce847d43fe8b773cfbf0eb Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Sun, 12 Dec 2004 18:17:14 +0000 Subject: * doc/upgrade.html: typo. * runsv.c: support custom control commands through control/ directory, optionally switch off sending signal. * man/runsv.8: document custom control commands. --- man/runsv.8 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'man') diff --git a/man/runsv.8 b/man/runsv.8 index eafad0c..c6b5a77 100644 --- a/man/runsv.8 +++ b/man/runsv.8 @@ -157,6 +157,30 @@ ignores unknown characters written to the control pipe. usually blocks if no .B runsv process is running in the service directory. +.SH CUSTOMIZE CONTROL +For each control character +.I c +sent to the control pipe, +.B runsv +first checks if +.I service\fR/control/\fIc +exists and is executable. +If so, it starts +.I service\fR/control/\fIc +and waits for it to terminate, before interpreting the command. +If the program exits with return code 0, +.B runsv +refrains from sending the service the corresponding signal. +The command +.I o +is always considered as command +.IR u . +The +.IR u , +.IR e , +and +.I x +commands of an optional log service cannot be customized. .SH SIGNALS If .B runsv -- cgit 1.4.1