From 803eb463a54c54bb623176573c51f382f52ee9a9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 25 Jun 2023 18:16:43 +0000 Subject: Loosen nonzero servicedirs requirement on s6-svwait/s6-svlisten Signed-off-by: Laurent Bercot --- doc/s6-svlisten.html | 2 ++ doc/s6-svwait.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/s6-svlisten.html b/doc/s6-svlisten.html index 8fdbc88..96d3f74 100644 --- a/doc/s6-svlisten.html +++ b/doc/s6-svlisten.html @@ -52,6 +52,8 @@ their state changes.
  • It spawns prog... as a child right after getting the initial state of all the monitored services.
  • It then blocks until the wanted state happens.
  • +
  • If no service directories are listed (the block is empty), then +instead of doing all that, it immediately execs into prog....

    Exit codes

    diff --git a/doc/s6-svwait.html b/doc/s6-svwait.html index 553201b..daa497f 100644 --- a/doc/s6-svwait.html +++ b/doc/s6-svwait.html @@ -35,7 +35,7 @@ s6-svwait only waits for notifications; it never polls.

    s6-svwait monitors one or more service directories given as its arguments, waiting for a state (ready, up or down) to -happen. +happen. If no service directories are listed, it immediately exits 0.

    Exit codes

    -- cgit v1.2.3