diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-03 01:21:59 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-03 01:21:59 +0000 |
commit | a68a432885e03663e4e3134439f0336e0a954607 (patch) | |
tree | c88d3176157a31a2bb2554985346b08d3faec319 /doc/s6-notifyoncheck.html | |
parent | 1e940aea70bcf0ef5883a6ffa44b287665d68952 (diff) | |
download | s6-a68a432885e03663e4e3134439f0336e0a954607.tar.xz |
Add note that s6-notifyoncheck must have the servicedir as cwd
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/s6-notifyoncheck.html')
-rw-r--r-- | doc/s6-notifyoncheck.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/s6-notifyoncheck.html b/doc/s6-notifyoncheck.html index 38efdcb..a4613e9 100644 --- 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> |