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
20 # See how we were called.
24 if [ ! -f /var/lock/subsys/acpid ]; then
25 msg_starting acpid $PROGRAM_ARGS
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
30 msg_already_running acpid
35 if [ -f /var/lock/subsys/acpid ]; then
38 rm -f /var/lock/subsys/acpid >/dev/null 2>&1
45 if [ -f /var/lock/subsys/acpid ]; then
61 msg_Usage "$0 {start|stop|restart|reload|status}"