summaryrefslogtreecommitdiff
path: root/doc/servicedir.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-15 18:27:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-15 18:27:25 +0000
commit0a39023fd7229371dd3e505208a1c0e073414ac2 (patch)
tree9689d12f7b1ae6c0144bbcb446ab1f0ee5dedfff /doc/servicedir.html
parent9cc5f3b25284ddca50ad1a19a83b1d1153dc9f5d (diff)
downloads6-0a39023fd7229371dd3e505208a1c0e073414ac2.tar.xz
- Readiness notification support in s6-supervise
- s6-notifywhenup deprecated - Change abundantly documented - rc for 2.1.4.0
Diffstat (limited to 'doc/servicedir.html')
-rw-r--r--doc/servicedir.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/servicedir.html b/doc/servicedir.html
index 501017b..7cebd53 100644
--- a/doc/servicedir.html
+++ b/doc/servicedir.html
@@ -103,6 +103,20 @@ automatically start it until it receives a <tt>s6-svc -u</tt> command. If no
s6-supervise will not make the service a process group and session leader; the service
will be run in the same process group as s6-supervise. If no <tt>nosetsid</tt> file
exists, the service has its own process group and is started as a session leader. </li>
+ <li> An optional regular file named <tt>notification-fd</tt>. If such a file
+exists, it means that the service supports
+<a href="notifywhenup.html">readiness notification</a>. The file must only
+ contain an unsigned integer, which is the number of the file descriptor that
+the service writes its readiness notification to. (For instance, it should
+be 1 if the daemon is <a href="s6-ipcserverd">s6-ipcserverd</a> run with the
+<tt>-1</tt> option.) </li>
+ when a service is started, or restarted, by s6-supervise, if this file
+exists and contains a valid descriptor number, s6-supervise will wait for the
+notification from the service and broadcast readiness, i.e. any
+<a href="s6-svwait.html">s6-svwait -U</a>,
+<a href="s6-svlisten1.html">s6-svlisten1 -U</a> or
+<a href="s6-svlisten.html">s6-svlisten -U</a> processes will be
+triggered. </li>
<li> A <a href="fifodir.html">fifodir</a> named <tt>event</tt>. It is automatically
created by <a href="s6-supervise.html">s6-supervise</a> if it does not exist.
<em>foo</em><tt>/event</tt>