let ipkg fail when a package file to be installed is not found
[openwrt/staging/wigyori.git] / openwrt / package / watchdog / files / watchdog.init
1 #!/bin/sh
2
3 RUN_D=/var/run
4 PID_F=$RUN_D/watchdog.pid
5
6 case $1 in
7 start)
8 /usr/sbin/watchdog
9 ;;
10 stop)
11 [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
12 ;;
13 *)
14 echo "usage: $0 (start|stop)"
15 exit 1
16 esac
17
18 exit $?