summaryrefslogtreecommitdiff
path: root/source/a/acpid/rc.acpid
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/acpid/rc.acpid')
-rw-r--r--source/a/acpid/rc.acpid6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/a/acpid/rc.acpid b/source/a/acpid/rc.acpid
index 32486d17..d6b74e88 100644
--- a/source/a/acpid/rc.acpid
+++ b/source/a/acpid/rc.acpid
@@ -11,7 +11,11 @@ acpid_start() {
# Stop acpid:
acpid_stop() {
- killall acpid
+ if [ -r /var/run/acpid.pid ]; then
+ kill $(cat /var/run/acpid.pid)
+ else
+ killall acpid
+ fi
}
# Restart acpid: