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 if [ ! -f /proc/acpi/event ]; then
28 msg_starting acpid $PROGRAM_ARGS
31 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
33 msg_already_running acpid
38 if [ -f /var/lock/subsys/acpid ]; then
41 rm -f /var/lock/subsys/acpid >/dev/null 2>&1
48 if [ -f /var/lock/subsys/acpid ]; then
65 msg_usage "$0 {start|stop|restart|reload|status}"