From 0a39023fd7229371dd3e505208a1c0e073414ac2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Jun 2015 18:27:25 +0000 Subject: - Readiness notification support in s6-supervise - s6-notifywhenup deprecated - Change abundantly documented - rc for 2.1.4.0 --- doc/s6-supervise.html | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'doc/s6-supervise.html') diff --git a/doc/s6-supervise.html b/doc/s6-supervise.html index 0c40aa1..78db1fa 100644 --- a/doc/s6-supervise.html +++ b/doc/s6-supervise.html @@ -59,6 +59,47 @@ if ./run exits too quickly. sends a 'x' event to ./event before exiting 0. +

Options

+ +

+ s6-supervise does not support options, because it is normally not run +manually via a command line; it is usually launched by its own +supervisor, s6-svscan. + However, the behaviour of an instance of s6-supervise can be tuned via +various configuration files in the service directory. These files, and +what they do, are listed on the +service directory documentation page. +

+ +

Readiness notification support

+ +

+ If the service directory contains a valid +notification-fd file when the service is started, or restarted, +s6-supervise creates and listens to an additional pipe from the service +for readiness notification. When the +notification occurs, s6-supervise creates a ./supervise/ready +file containing the absolute time when readiness occurred, then sends +a 'U' event to ./event. The ./supervise/ready +file is deleted on service death. +

+ +

+ If the service is logged, i.e. if the service directory has a +log subdirectory that is also a service directory, and the +s6-supervise process has been launched by +that is also s6-svscan, then by default +the service's stdout goes into the logging pipe. If you set +notification-fd to 1, the logging pipe will be overwritten +by the notification pipe, which is probably not what you want. Instead, +if your daemon writes a notification message to its stdout, you should +set notification-fd to (for instance) 3, and redirect outputs +in your run script. For instance, to redirect stderr to the logger and +stdout to a notification-fd set to 3, you would start your +daemon as fdmove -c 2 1 fdmove 1 3 prog... (in execline), or +exec 2>&1 1>&3 3<&- prog... (in shell). +

+

Signals

-- cgit v1.2.3