s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit a68a432885e03663e4e3134439f0336e0a954607
parent 1e940aea70bcf0ef5883a6ffa44b287665d68952
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue,  3 Oct 2023 01:21:59 +0000

 Add note that s6-notifyoncheck must have the servicedir as cwd

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Mdoc/s6-notifyoncheck.html | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/doc/s6-notifyoncheck.html b/doc/s6-notifyoncheck.html @@ -160,6 +160,17 @@ and runnable as that user. </li> <li> Note that s6-notifyoncheck should be used to check if <em>the current service itself</em> is running. You cannot use it to poll for the readiness of another service. </li> + <li> s6-notifyoncheck must be run with the service directory as its +current working directory. In other words: you cannot use <tt>cd</tt> +in your run script before you execute the command line containing +s6-notifyoncheck (else you will get a weird error message saying the +supervisor is not running). If your service needs to run in a different +working directory, you need to change working directories <em>after</em> +the s6-notifyoncheck invocation. The +<a href="//skarnet.org/software/execline/cd.html">cd</a> utility from +the <a href="//skarnet.org/software/execline/">execline</a> package +can be used to change working directories in the middle of a command +line (and exec the rest of the command line) without invoking a shell. </li> </ul> </body>