]> git.pld-linux.org Git - packages/apmd.git/commitdiff
- updated to rc-scripts 0.2.0
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Mar 2000 12:59:55 +0000 (12:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apmd.init -> 1.4

apmd.init

index d5a5585a4c6ecd1bce21716850a4e5cc48ebe3b7..f8262cd440b43716f793c196e5f697c7e2e75709 100644 (file)
--- a/apmd.init
+++ b/apmd.init
@@ -1,11 +1,11 @@
 #!/bin/sh
 #
-# chkconfig: 2345 05 92
-# description: apmd is used for monitoring batery status and logging it via \
-#      syslog(8). It can also be used for shutting down the machine when \
-#      the battery is low.
-# processname: apmd
-# config: /etc/sysconfig/apmd
+# chkconfig:   2345 05 92
+# description: apmd is used for monitoring batery status and logging it via \
+#              syslog(8). It can also be used for shutting down the machine when \
+#              the battery is low.
+# processname: apmd
+# config:      /etc/sysconfig/apmd
 
 # Source function library.
 . /etc/rc.d/init.d/functions
@@ -20,13 +20,13 @@ CONFIG=/etc/sysconfig/apmd
 # See how we were called.
 case "$1" in
   start)
-       show "Starting up APM daemon: "
+       msg_starting APM
        [ -r "$CONFIG" ] && . "$CONFIG"
        daemon /usr/sbin/apmd "$APMD_OPTIONS"
        touch /var/lock/subsys/apmd
        ;;
   stop)
-       show "Shutting down APM daemon: "
+       msg_stopping APM
        killproc apmd
        rm -f /var/lock/subsys/apmd
        ;;
@@ -37,8 +37,7 @@ case "$1" in
        $0 stop
        $0 start
        ;;
-       
   *)
-       echo "Usage: apmd {start|stop|status|restart|reload}"
+       msg_Usage "$0 {start|stop|status|restart|reload}"
        exit 1
 esac
This page took 0.053452 seconds and 4 git commands to generate.