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 PIDFILE="/var/run/s6.pid"
19 SCRIPTNAME="/etc/init.d/${NAME}"
21 test -x $DAEMON || exit 0
23 if test -f /etc/default/${NAME}; then
24 . /etc/default/${NAME}
28 . /lib/lsb/init-functions
32 if $0 status > /dev/null ; then
33 log_success_msg "$NAME is already running"
35 log_daemon_msg "Starting ${DESC}" "${NAME}"
36 /sbin/start-stop-daemon \
39 --chdir "${SCANDIR}" \
40 --startas "${DAEMON}" \
43 --pidfile "${PIDFILE}" \
49 log_daemon_msg "Stopping ${DESC}" "${NAME}"
50 /sbin/start-stop-daemon \
53 --retry TERM/60/QUIT/60 \
55 --pidfile "${PIDFILE}"
57 /sbin/start-stop-daemon \
60 --retry TERM/60/KILL/10 \
61 --exec /usr/bin/s6-svscan
62 /sbin/start-stop-daemon \
66 --exec /usr/bin/s6-supervise
75 status_of_proc -p ${PIDFILE} ${DAEMON} s6 && exit 0 || exit $?
78 echo "Usage: ${SCRIPTNAME} {start|stop|restart|force-reload|status}"