3 # chkconfig: 2345 35 65
4 # description: apmd is used for monitoring batery status and logging it via \
5 # syslog(8). It can also be used for shutting down the machine when \
8 # config: /etc/sysconfig/apmd
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 if [ ! -f /proc/apm ]; then
14 modprobe apm && echo "No kernel APM support!"; exit 1
17 CONFIG=/etc/sysconfig/apmd
19 # See how we were called.
23 [ -r "$CONFIG" ] && . "$CONFIG"
24 daemon /usr/sbin/apmd "$APMD_OPTIONS"
25 touch /var/lock/subsys/apmd
30 rm -f /var/lock/subsys/apmd
40 msg_usage "$0 {start|stop|status|restart|reload}"