about summary refs log tree commit diff
path: root/doc/s6-svc.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-25 19:17:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-25 19:17:43 +0000
commit49f1f9efe1874449303ca8c95a35a7b2bd4e13a0 (patch)
tree1d938071351c0447e96c250e4e999de0a687ba5b /doc/s6-svc.html
parent96d70608d25da81038ac3bfb5273852f33e27504 (diff)
downloads6-49f1f9efe1874449303ca8c95a35a7b2bd4e13a0.tar.gz
s6-49f1f9efe1874449303ca8c95a35a7b2bd4e13a0.tar.xz
s6-49f1f9efe1874449303ca8c95a35a7b2bd4e13a0.zip
- doc fixes (changed mentions of s6-notifywhenup)
 - s6-svc -X
 - rc for 2.1.6.0
Diffstat (limited to 'doc/s6-svc.html')
-rw-r--r--doc/s6-svc.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/s6-svc.html b/doc/s6-svc.html
index 5d45972..2de8ba4 100644
--- a/doc/s6-svc.html
+++ b/doc/s6-svc.html
@@ -60,6 +60,13 @@ Automatically restart it when it dies. </li>
  <li> <tt>-x</tt>&nbsp;: exit. When the service is asked to be down and
 the supervised process dies, s6-supervise will exit too. This command should
 normally never be used on a working system. </li>
+ <li> <tt>-X</tt>&nbsp;: close fds and exit. Like <tt>-x</tt>, but
+<a href="s6-supervise.html">s6-supervise</a> will immediately close its
+stdin, stdout and stderr. This is useful when s6-supervise has descriptors
+open to the service it is supervising and the service is waiting for them
+to close before exiting. Note that if this option is used, the last
+execution of the service's <tt>finish</tt> script will be run with
+stdin, stdout and stderr redirected to <tt>/dev/null</tt>. </li>
  <li> <tt>-O</tt>&nbsp;: Once at most. Do not restart the supervised process
 when it dies. If it is down when the command is received, do not even start
 it. </li>
@@ -71,9 +78,10 @@ timeout is 0, which means that s6-svc will block indefinitely. </li>
  <li> <tt>-D</tt>&nbsp;: s6-svc will not exit until the service is down. </li>
  <li> <tt>-U</tt>&nbsp;: s6-svc will not exit until the service is up and
 <a href="notifywhenup.html">ready</a> as notified by the daemon itself.
-Be careful to only use this command on services that send readiness
-notifications and are managed by <a href="s6-notifywhenup.html">s6-notifywhenup</a>,
-else the command will never be successful. </li>
+If the <a href="servicedir.html">service directory</a> does not contain
+a <tt>notification-fd</tt> file to tell
+<a href="s6-supervise.html">s6-supervise</a> to accept readiness
+notification, s6-svc will print a warning and ignore the command. </li>
 </ul>
 
 <h2> Usage examples </h2>