]> err.no Git - varnish/commitdiff
correct pidfile option to daemon and killproc functions
authoringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Aug 2008 23:01:54 +0000 (23:01 +0000)
committeringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 25 Aug 2008 23:01:54 +0000 (23:01 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3123 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/redhat/varnish.initrc

index 356334630c99443378cb77c48cc53ac7e7aaf8f2..6aa5042fc0402cc51c2ca6f959e4b4013ae0f028 100755 (executable)
@@ -62,7 +62,7 @@ start() {
                return 6
        else
                # Varnish always gives output on STDOUT
-               daemon $exec "$DAEMON_OPTS" -P $pidfile > /dev/null 2>&1
+               daemon $exec "$DAEMON_OPTS" --pidfile $pidfile > /dev/null 2>&1
                retval=$?
                if [ $retval -eq 0 ]
                then
@@ -99,7 +99,7 @@ force_reload() {
 }
 
 rh_status() {
-       status $prog
+       status -p $pidfile $prog
 }
 
 rh_status_q() {