From 84457fd2a4bfb662aacd11f9106323efe4b2f915 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Tue, 23 Aug 2005 22:36:27 +0000 Subject: * doc/runscripts.html: typo; openssh needs absolute path (thx Kevin Berry); exec into dhcpcd. * uidgid.c, uidgid.h, chpst.c: support colon-separated list of groups. * sv.c: utilize optional ./check script in service directory to check for availablity of service. * runsv.c: wait_pid() might be interupted. * man/chpst.8, man/sv.8: adapt. --- man/chpst.8 | 13 ++++++++++++- man/sv.8 | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/chpst.8 b/man/chpst.8 index ae158cb..7594fa8 100644 --- a/man/chpst.8 +++ b/man/chpst.8 @@ -50,7 +50,12 @@ set the gid to gid instead of .IR user 's gid. -All supplementary groups are removed. +If +.I group +consists of a colon-separated list of group names, +.B chpst +sets the group ids of all listed groups. +All initial supplementary groups are removed. .TP .B \-U \fIuser[:group] envuidgid. @@ -66,6 +71,12 @@ set $GID to the gid instead of .IR user 's gid. +If +.I group +consists of a colon-separated list of group names, +.B chpst +sets the group ids of all listed groups. +All initial supplementary groups are removed. .TP .B \-e \fIdir envdir. diff --git a/man/sv.8 b/man/sv.8 index 49d21b2..8cb1bc7 100644 --- a/man/sv.8 +++ b/man/sv.8 @@ -95,6 +95,14 @@ Same as .IR up , but wait up to 7 seconds for the command to take effect. Then report the status or timeout. +If the script +.I ./check +exists in the service directory, +.B sv +runs this script to check whether the service is up and available; +it's considered to be available if +.I ./check +exits with 0. .TP .B stop Same as @@ -110,6 +118,14 @@ and .I up to the service, and wait up to 7 seconds for the service to restart. Then report the status or timeout. +If the script +.I ./check +exists in the service directory, +.B sv +runs this script to check whether the service is up and available again; +it's considered to be available if +.I ./check +exits with 0. .TP .B shutdown Same as @@ -147,6 +163,14 @@ commands, and wait up to 7 seconds for the service to restart. Then report the status, and on timeout send the service the .I kill command. +If the script +.I ./check +exists in the service directory, +.B sv +runs this script to check whether the service is up and available again; +it's considered to be available if +.I ./check +exits with 0. .TP .B force-shutdown Same as -- cgit 1.4.1