]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- fixed reload
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 23 Jan 2002 06:42:55 +0000 (06:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.init -> 1.3

acpid.init

index 3c7010f2215bf66e088498811d2cf98ad7415d03..273a780b38080f1966d69abf4ac3eaf0b204b0ac 100644 (file)
@@ -42,8 +42,13 @@ case "$1" in
                fi
                ;;
        reload)
-               trap "" SIGHUP
-               killall -HUP acpid
+                if [ -f /var/lock/subsys/acpid ]; then
+                        msg_reloading acpid
+                        killproc acpid -HUP
+                else
+                        msg_not_running acpid
+                        exit 1
+                fi
                ;;
        restart)
                $0 stop
This page took 0.087514 seconds and 4 git commands to generate.