Commit 4df4ffa4 authored by Ingvar Hagelund's avatar Ingvar Hagelund

Fixed pidfile issues in redhat package


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3192 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b25eb548
...@@ -61,7 +61,7 @@ start() { ...@@ -61,7 +61,7 @@ start() {
return 6 return 6
else else
# Varnish always gives output on STDOUT # Varnish always gives output on STDOUT
daemon --pidfile $pidfile $exec "$DAEMON_OPTS" > /dev/null 2>&1 daemon --pidfile $pidfile $exec -P $pidfile "$DAEMON_OPTS" > /dev/null 2>&1
retval=$? retval=$?
if [ $retval -eq 0 ] if [ $retval -eq 0 ]
then then
...@@ -77,7 +77,7 @@ start() { ...@@ -77,7 +77,7 @@ start() {
stop() { stop() {
echo -n "Stopping varnish HTTP accelerator: " echo -n "Stopping varnish HTTP accelerator: "
killproc $prog killproc -p $pidfile $prog
retval=$? retval=$?
echo echo
[ $retval -eq 0 ] && rm -f $lockfile [ $retval -eq 0 ] && rm -f $lockfile
......
Summary: Varnish is a high-performance HTTP accelerator Summary: Varnish is a high-performance HTTP accelerator
Name: varnish Name: varnish
Version: 2.0 Version: 2.0
Release: 0.9.20080912svn3184%{?dist} Release: 0.9.20080916svn3192%{?dist}
License: BSD License: BSD
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://www.varnish-cache.org/ URL: http://www.varnish-cache.org/
......
...@@ -49,7 +49,7 @@ start() { ...@@ -49,7 +49,7 @@ start() {
stop() { stop() {
echo -n "Stopping varnish logging daemon: " echo -n "Stopping varnish logging daemon: "
killproc $prog killproc -p $pidfile $prog
retval=$? retval=$?
echo echo
[ $retval -eq 0 ] && rm -f $lockfile [ $retval -eq 0 ] && rm -f $lockfile
......
...@@ -49,7 +49,7 @@ start() { ...@@ -49,7 +49,7 @@ start() {
stop() { stop() {
echo -n "Stopping varnish ncsa logging daemon: " echo -n "Stopping varnish ncsa logging daemon: "
killproc $prog killproc -p $pidfile $prog
retval=$? retval=$?
echo echo
[ $retval -eq 0 ] && rm -f $lockfile [ $retval -eq 0 ] && rm -f $lockfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment