#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { after net } start() { ebegin "Starting runsvdir" start-stop-daemon --start --exec /usr/bin/runsvdir \ --background --make-pidfile \ --pidfile /var/run/runsvdir.pid -- /var/service eend $? } stop() { ebegin "Stopping runsvdir" start-stop-daemon --stop --oknodo --pidfile /var/run/runsvdir.pid eend $? ebegin "Stopping services and logging" runsvctrl exit /var/service/* eend $? }