From d73a8330016fbf172f8e3521b879502b9139a970 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 14 Jan 2015 00:48:32 +0000 Subject: - Parallel build fix - Complete readiness notification via supervise/ready - Version updated to 2.0.1.0, release candidate --- doc/s6-svwait.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'doc/s6-svwait.html') diff --git a/doc/s6-svwait.html b/doc/s6-svwait.html index 6e15704..5f3cb08 100644 --- a/doc/s6-svwait.html +++ b/doc/s6-svwait.html @@ -33,7 +33,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 (up or down) to +directories given as its arguments, waiting for a state (ready, up or down) to happen. It exits 0 when the wanted condition becomes true.

@@ -46,8 +46,10 @@ This is the default; it is not reliable, but it does not depend on specific support in the service programs. See this page for details.
  • -U : really up. s6-svwait will wait until the services are -up, as reported by the services themselves. This requires specific support in the -service programs: see the explanation on this page.
  • +up and ready as reported by the services themselves. This requires +specific support in the service programs, and the use of +s6-notifywhenup in the service's run script. +See the explanation on this page.
  • -d : down. s6-svwait will wait until the services are down.
  • -o : or. s6-svwait will wait until one of the given services comes up or down.
  • @@ -59,13 +61,13 @@ to stderr and exit 1. By default, timeout is 0, which means no time limit. -

    Internals

    s6-svwait spawns a s6-ftrigrd child to listen to notifications sent by s6-supervise. -It also checks supervise/status files to get the current service +It also checks supervise/status files, as well as the +supervise/ready files if necessary, to get the current service states, so it is immune to race conditions.

    -- cgit v1.2.3