]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- LSB compliance
authorankry <ankry@pld-linux.org>
Sat, 17 May 2003 21:03:34 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.init -> 1.8

acpid.init

index 4bd454c1e8e6af276d5b70a85ef86576bca09a17..023f72e5ed69479a0c09b009c80ce438e7b5169f 100644 (file)
 
 
 RETVAL=0
-
 # See how we were called.
 case "$1" in
   start)
        # Start daemons.
        if [ ! -f /var/lock/subsys/acpid ]; then
                if [ ! -f /proc/acpi/event ]; then
-                       modprobe ospm_button
+                       _modprobe single ospm_button
                fi
                msg_starting acpid $PROGRAM_ARGS
                daemon acpid
@@ -41,29 +40,30 @@ case "$1" in
                rm -f /var/lock/subsys/acpid >/dev/null 2>&1
        else
                msg_not_running acpid
-               exit 1
        fi
        ;;
-  reload)
+  reload|force-reload)
        if [ -f /var/lock/subsys/acpid ]; then
                msg_reloading acpid
                killproc acpid -HUP
                RETVAL=$?
        else
                msg_not_running acpid
-               exit 1
+               exit 7
        fi
        ;;
   restart)
        $0 stop
        $0 start
+       exit =$?
        ;;
   status)
        status acpid
+       exit =$?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.09631 seconds and 4 git commands to generate.