From: ingvar Date: Mon, 25 Aug 2008 23:01:54 +0000 (+0000) Subject: correct pidfile option to daemon and killproc functions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa271712fee0dd0276111049b17a7499ec67184a;p=varnish correct pidfile option to daemon and killproc functions git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3123 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/redhat/varnish.initrc b/varnish-cache/redhat/varnish.initrc index 35633463..6aa5042f 100755 --- a/varnish-cache/redhat/varnish.initrc +++ b/varnish-cache/redhat/varnish.initrc @@ -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() {