path: runit_2.3.0-1/debian/contrib/lib/trigger_sv # fi # done if [ -f /etc/runit/stopit ] && pidof runsvdir > /dev/null ; then [ "$(id -u)" = 0 ] && kill -s ALRM 1 # force rescan to pick changes in enabled/disabled service status fi path: runit_2.3.0-1/debian/contrib/lib/trigger_sv echo "$defaultdir : directory not found, exit" && exit 1 fi if [ ! -f /etc/runit/stopit ] && ! pidof -q runsvdir ; then [ -e /etc/runit/verbose ] && echo "no runsvdir found, exit" exit 0 # noop if runit is not init and there's no runsvdir running path: runit_2.3.0-1/runit-2.3.0/doc/benefits.html

This reliable interface to control daemons and supervisors obsoletes pid-guessing programs, such as pidof, killall, start-stop-daemon, which, due to guessing, are prone to failures by design. path: runit_2.3.0-1/debian/tests/init-switch check_services_are_running () { echo "detecting gettys" if pidof getty; then echo "OK" elif pidof fgetty; then path: runit_2.3.0-1/debian/tests/init-switch if pidof getty; then echo "OK" elif pidof fgetty; then echo "OK" else