rc.watchdog.debian

来自「watchdog source watchdog source」· DEBIAN 代码 · 共 46 行

DEBIAN
46
字号
#!/bin/sh#/etc/init.d/watchdog: start watchdog daemon.test -x /usr/sbin/watchdog || exit 0# Set run_watchdog to 1 to start watchdog or 0 to disable it.run_watchdog=1# Used by debmake as an argument to update-rc.d.FLAGS="defaults 10"case "$1" in  start)    if [ $run_watchdog = 1 ]    then	echo -n "Starting software watchdog..."	if start-stop-daemon --start --quiet --exec /usr/sbin/watchdog -- -r /usr/sbin/repair	then	    echo done.	else	    echo failed.	fi    fi    ;;  stop)    if [ $run_watchdog = 1 ]    then	echo -n "Stopping software watchdog..."	if start-stop-daemon --stop --quiet --pidfile /var/run/watchdog.pid	then	    echo done.	else	    echo failed.	fi    fi    ;;  *)    echo "Usage: /etc/init.d/watchdog {start|stop}"    exit 1esacexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?