From 1874d378c2d9a107e98d73cc6f130add5fc9026a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 9 Oct 2017 13:18:31 +0000 Subject: Make s6-rc prefix-independent; implement s6-rc diff Using scandir/ in s6-rc is useless, we have access to the servicedirs/ directly. That prevents us from being concerned with scandir prefixes. --- doc/s6-rc.html | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'doc/s6-rc.html') diff --git a/doc/s6-rc.html b/doc/s6-rc.html index 7052b45..8aa530c 100644 --- a/doc/s6-rc.html +++ b/doc/s6-rc.html @@ -46,6 +46,7 @@ especially when asking for a state change. s6-rc help s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] list servicenames... s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] listall servicenames... + s6-rc [ -l live ] [ -b ] diff s6-rc [ -l live ] [ -b ] [ -a ] [ -u | -d ] [ -p ] [ -v verbosity ] [ -n dryrunthrottle ] [ -t timeout ] change [ servicenames... ] @@ -63,7 +64,8 @@ state change. +

s6-rc diff

+ +

+ Checks the consistency between s6-rc's view of the state of the longruns +it's managing, and s6's view. +s6-rc will print one line per service +whose s6 state fails to match what s6-rc believes: + a + character (if s6 is maintaining the service as up when s6-rc +thinks it's down) or a - character (if s6 is not trying to maintain +the service when s6-rc thinks it's up), followed by the service name. +If s6-rc finds at least one mismatch, it exits 1; else it exits 0. +

+ +

+ s6-rc diff normally reports nothing. Currently, the only case where +s6-rc's view can diverge from s6's view is when a service has been brought +up via a s6-rc change command, then has failed at some point with +a permanent failure - which means its +supervisor has +stopped trying to bring it back up. +

+

s6-rc change

-- cgit v1.2.3