From a68a432885e03663e4e3134439f0336e0a954607 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 3 Oct 2023 01:21:59 +0000 Subject: Add note that s6-notifyoncheck must have the servicedir as cwd Signed-off-by: Laurent Bercot --- doc/s6-notifyoncheck.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.
  • Note that s6-notifyoncheck should be used to check if the current service itself is running. You cannot use it to poll for the readiness of another service.
  • +
  • s6-notifyoncheck must be run with the service directory as its +current working directory. In other words: you cannot use cd +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 after +the s6-notifyoncheck invocation. The +cd utility from +the execline 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.
  • -- cgit v1.2.3