# HG changeset patch # User Pascal Bellard # Date 1329580457 -3600 # Node ID 975c0719444a92549815d4c3b3c1027ee5874ada # Parent 5dfd3ce5f96bf3cec3da9d3ffe48cd65d51dab03 lighttpd: update start script diff -r 5dfd3ce5f96b -r 975c0719444a lighttpd/stuff/etc/init.d/lighttpd --- a/lighttpd/stuff/etc/init.d/lighttpd Sat Feb 18 16:50:02 2012 +0100 +++ b/lighttpd/stuff/etc/init.d/lighttpd Sat Feb 18 16:54:17 2012 +0100 @@ -14,7 +14,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE lighttpd ; then echo "$NAME already running." exit 1 fi @@ -23,7 +23,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE lighttpd ; then echo "$NAME is not running." exit 1 fi @@ -33,7 +33,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE lighttpd ; then echo "$NAME is not running." exit 1 fi