3 # acpid Starts the acpi daemon
6 # description: Listen and dispatch ACPI events from the kernel
9 # pidfile: /var/run/acpid.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/acpid
17 test -x /usr/sbin/acpid || echo "You need to check package!!"; exit 0
21 # See how we were called.
25 if [ ! -f /var/lock/subsys/acpid ]; then
26 msg_starting acpid $PROGRAM_ARGS
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
31 msg_already_running acpid
36 if [ -f /var/lock/subsys/acpid ]; then
39 rm -f /var/lock/subsys/acpid >/dev/null 2>&1
57 msg_Usage "$0 {start|stop|restart|reload|status}"