5 # Required-Start: $remote_fs $syslog nftables
6 # Required-Stop: $remote_fs $syslog nftables
7 # Default-Start: 2 3 4 5
9 # Short-Description: Start s6 service supervision suite
10 # Description: Start s6 service supervision suite
14 DESC="s6 system service supervision suite"
15 DAEMON="/usr/local/bin/s6-svscanboot"
16 SCANDIR="/etc/s6-scandir/"
17 DAEMON_ARGS=${SCANDIR}
18 SCRIPTNAME="/etc/init.d/${NAME}"
20 test -x $DAEMON || exit 0
22 if test -f /etc/default/${NAME}; then
23 . /etc/default/${NAME}
27 . /lib/lsb/init-functions
31 if $0 status > /dev/null ; then
32 log_success_msg "$NAME is already running"
34 log_daemon_msg "Starting ${DESC}" "${NAME}"
35 /sbin/start-stop-daemon \
38 --chdir "${SCANDIR}" \
45 log_daemon_msg "Stopping ${DESC}" "${NAME}"
46 /usr/bin/s6-svscanctl -t "${SCANDIR}"
47 if test $? = 111; then
48 /sbin/start-stop-daemon \
51 --retry TERM/60/KILL/10 \
52 --exec /usr/bin/s6-svscan
53 /sbin/start-stop-daemon \
57 --exec /usr/bin/s6-supervise
66 status_of_proc ${DAEMON} s6 && exit 0 || exit $?
69 echo "Usage: ${SCRIPTNAME} {start|stop|restart|force-reload|status}"