2 # SYNTAX: $sv [...] -- $sv_options
3 tool
=$
(readlink
-e "${0%/*}/..")
6 "$tool"/local
/apt-get-install runit
12 -mindepth 1 -maxdepth 1 -type d \
13 -printf '%p\n' |
sort)
19 (*) services
="$services ${1#/etc/sv/}"; shift;;
22 #for sv in $(sudo find /etc/sv \
23 # -mindepth 1 -maxdepth 1 -type d \
24 # -false $(printf -- '-or -name %s\n' $services) \
27 # case $(sudo sv stop "$sv" | tee /dev/stderr) in
28 # (*": runsv not running") true;;
29 # (*": unable to open supervise/ok: file does not exist") true;;
30 # ("ok: down:"*) true;;
34 for sv
in $
(find "$tool"/etc
/sv \
35 -mindepth 1 -maxdepth 1 -type d \
36 -false $
(printf -- '-or -name %s\n' $services) \
39 "$tool"/local
/runit-sv-configure
"$sv" "$@"
40 "$tool"/local
/runit-sv-start
"$sv"
43 #sudo find -L /etc/service -type l -delete