# HG changeset patch # User Pascal Bellard # Date 1329582124 -3600 # Node ID ea3814974a2528ba99374fc066f51178009bace1 # Parent ba5507fa22f8d197e84d91568af5dd1613970b6d acpid: update start script diff -r ba5507fa22f8 -r ea3814974a25 acpid/stuff/init.d/acpid --- a/acpid/stuff/init.d/acpid Sat Feb 18 17:18:01 2012 +0100 +++ b/acpid/stuff/init.d/acpid Sat Feb 18 17:22:04 2012 +0100 @@ -16,7 +16,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE $NAME ; then echo "$NAME already running." exit 1 fi @@ -25,7 +25,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE $NAME ; then echo "$NAME is not running." exit 1 fi @@ -34,7 +34,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE $NAME ; then echo "$NAME is not running." exit 1 fi