3 # chkconfig: 2345 05 92
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 CONFIG=/etc/sysconfig/apmd
11 # Source function library.
12 . /etc/rc.d/init.d/functions
14 # See how we were called.
17 echo -n "Starting up APM daemon: "
18 test -r "$CONFIG" && . "$CONFIG"
19 daemon /usr/sbin/apmd "$APMD_OPTIONS"
20 touch /var/lock/subsys/apmd
24 echo -n "Shutting down APM daemon: "
26 rm -f /var/lock/subsys/apmd
38 echo "Usage: apmd.init {start|stop|status|restart|reload}"