# HG changeset patch # User Pascal Bellard # Date 1329582906 -3600 # Node ID b6858242c35f5c3454f5fcea4f35ca16ec103353 # Parent e99b372b046592a2237db0812ff10b4b187f333c privoxy: update start script diff -r e99b372b0465 -r b6858242c35f privoxy/stuff/daemon-privoxy --- a/privoxy/stuff/daemon-privoxy Sat Feb 18 17:25:41 2012 +0100 +++ b/privoxy/stuff/daemon-privoxy Sat Feb 18 17:35:06 2012 +0100 @@ -18,7 +18,7 @@ case "$1" in start) - if [ -f $PIDFILE ] ; then + if active_pidfile $PIDFILE privoxy ; then echo "$NAME already running." exit 1 fi @@ -27,7 +27,7 @@ status ;; stop) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE privoxy ; then echo "$NAME is not running." exit 1 fi @@ -37,7 +37,7 @@ status ;; restart) - if [ ! -f $PIDFILE ] ; then + if ! active_pidfile $PIDFILE privoxy ; then echo "$NAME is not running." exit 1 fi