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
19 # See how we were called.
23 if [ ! -f /var/lock/subsys/acpid ]; then
24 if [ ! -d /proc/acpi/button ]; then
28 if is_yes "$MODPROBE_OSPM_SYSTEM"; then
29 _modprobe single ospm_system
31 msg_starting acpid $PROGRAM_ARGS
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
36 msg_already_running acpid
41 if [ -f /var/lock/subsys/acpid ]; then
44 rm -f /var/lock/subsys/acpid >/dev/null 2>&1
50 if [ -f /var/lock/subsys/acpid ]; then
55 msg_not_running acpid >&2
69 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"