python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / acpid / S02acpid
blobe8d3661674804dfb2b5d416fd13e5a7a4e39c90f
1 #!/bin/sh
3 case "$1" in
4 start)
5 printf "Starting acpid: "
6 start-stop-daemon -S -q -m -b -p /var/run/acpid.pid --exec /usr/sbin/acpid -- -n
7 [ $? = 0 ] && echo "OK" || echo "FAIL"
8 ;;
9 stop)
10 printf "Stopping acpid: "
11 start-stop-daemon -K -q -p /var/run/acpid.pid
12 [ $? = 0 ] && echo "OK" || echo "FAIL"
14 restart)
15 "$0" stop
16 sleep 1
17 "$0" start
20 echo "Usage: $0 {start|stop|restart}"
22 esac