summaryrefslogtreecommitdiff
path: root/doc/s6-linux-init-shutdownd.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-06 19:27:21 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-06 19:27:21 +0000
commit2a4e570485e8dee285843ca46f6dd6155972c437 (patch)
treeecb19738ece505d9d1d71e6891196345a3a907b8 /doc/s6-linux-init-shutdownd.html
parent392a1b8d4cfdb40812fa9434f06fd3ff73e39973 (diff)
downloads6-linux-init-2a4e570485e8dee285843ca46f6dd6155972c437.tar.xz
Add notification to shutdownd
This saves 1 second between stage 3 and stage 4. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/s6-linux-init-shutdownd.html')
-rw-r--r--doc/s6-linux-init-shutdownd.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/s6-linux-init-shutdownd.html b/doc/s6-linux-init-shutdownd.html
index b0d42f4..7b504d9 100644
--- a/doc/s6-linux-init-shutdownd.html
+++ b/doc/s6-linux-init-shutdownd.html
@@ -27,7 +27,7 @@ directly by the user.
<h2> Interface </h2>
<pre>
- s6-linux-init-shutdownd [ -c <em>basedir</em> ] [ -g <em>gracetime</em> ] [ -C ] [ -B ]
+ s6-linux-init-shutdownd [ -d <em>notif</em> ] [ -c <em>basedir</em> ] [ -g <em>gracetime</em> ] [ -C ] [ -B ]
</pre>
<ul>
@@ -51,6 +51,13 @@ machine. </li>
<h2> Options </h2>
<ul>
+ <li> <tt>-d</tt>&nbsp;<em>notif</em>&nbsp;: when ready
+(actually listening to its named pipe),
+write a newline to file descriptor <em>notif</em> then close it.
+This allows s6-linux-init-shutdownd to use the
+<a href="//skarnet.org/software/s6/notifywhenup.html">s6 mechanism to notify
+readiness</a>. <em>notif</em> cannot be lesser than 3.
+If this option is not given, no readiness notification is sent. </li>
<li> <tt>-c&nbsp;<em>basedir</em></tt>&nbsp;: look for the
<em>rc.shutdown</em> script in the <em>basedir</em><tt>/scripts</tt>
directory. Default is <tt>/etc/s6-linux-init/current</tt>. </li>