From b1b5cca013c200014799953dd40d0b9e2ea88e63 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 22 Oct 2025 03:03:53 +0000 Subject: Add some doc, improve s6-background-watch --- doc/servicedir.html | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'doc/servicedir.html') diff --git a/doc/servicedir.html b/doc/servicedir.html index 5cc2fe0..4ef16f5 100644 --- a/doc/servicedir.html +++ b/doc/servicedir.html @@ -151,7 +151,7 @@ automatically start it until it receives a s6-svc -u command. If no
  • An optional regular file named notification-fd. If such a file exists, it means that the service supports readiness notification. The file must only - contain an unsigned integer, which is the number of the file descriptor that + contain a nonzero unsigned integer, which is the number of the file descriptor that the service writes its readiness notification to. (For instance, it should be 1 if the daemon is s6-ipcserverd run with the -1 option.) @@ -164,7 +164,7 @@ notification from the service and broadcast readiness, i.e. any triggered.
  • An optional regular file named lock-fd. If such a file -exists, it must contain an unsigned integer, representing a file descriptor that +exists, it must contain a nonzero unsigned integer, representing a file descriptor that will be open in the service. The service should not write to that descriptor and should not close it. In other words, it should totally ignore it. That file descriptor holds a lock, that will naturally be released when the service dies. @@ -221,6 +221,30 @@ be very bad.)
  • +
  • An optional regular file named pidfile. +Creating such a file is not recommended, but is a workaround — and only +a workaround — for daemons that background themselves. If this file +exists, it must contain the path (either absolute or relative to the service +directory) to a pid file, followed by a newline; the path must be shorter than +512 bytes. The following behaviour is then expected: + +If the file does not exist, s6-supervise only +supervises daemons that do not background themselves, which is the normal case.
  • +
  • A fifodir named event. It is automatically created by s6-supervise if it does not exist. foo/event -- cgit v1.3.1