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 echo "No kernel APM support!"
18 CONFIG=/etc/sysconfig/apmd
20 # See how we were called.
24 [ -r "$CONFIG" ] && . "$CONFIG"
25 daemon /usr/sbin/apmd "$APMD_OPTIONS"
26 touch /var/lock/subsys/apmd
31 rm -f /var/lock/subsys/apmd
41 msg_Usage "$0 {start|stop|status|restart|reload}"