summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-04 10:03:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-04 10:03:03 +0000
commite1026367525f66350c6e66ee9f809b289ae655ee (patch)
treec10a2b1f0c047d508685f794c866d15d099c846c
parenta39482a27960e4d11c122459175985615f7c35e0 (diff)
downloads6-e1026367525f66350c6e66ee9f809b289ae655ee.tar.xz
Document lastfinish behaviour
-rw-r--r--doc/servicedir.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/servicedir.html b/doc/servicedir.html
index d8d7c8d..8b6871f 100644
--- a/doc/servicedir.html
+++ b/doc/servicedir.html
@@ -113,6 +113,10 @@ the signal that killed the run script). </li>
<li> If the finish script exits 125, then <a href="s6-supervise.html">s6-supervise</a>
interprets this as a permanent failure for the service, and does not restart it,
as if an <a href="s6-svc.html">s6-svc -O</a> command had been sent. </li>
+ <li> If <a href="s6-supervise.html">s6-supervise</a> has been instructed to exit after
+the service dies, via a <tt>s6-svc -x</tt> command or a SIGHUP, then the next
+invocation of <tt>finish</tt> will (obviously) be the last, and it will run with
+stdin and stdout pointing to <tt>/dev/null</tt>. </li>
</ul> </li>
<li style="margin-bottom:1em"> A directory named <tt>supervise</tt>. It is automatically created by
<a href="s6-supervise.html">s6-supervise</a> if it does not exist. This is where