[Varnish] #969: init.d stop() function improvement
Varnish
varnish-bugs at varnish-cache.org
Mon Aug 1 14:20:59 CEST 2011
#969: init.d stop() function improvement
---------------------------+------------------------------------------------
Reporter: David Busby | Owner: ingvar
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.0
Severity: normal | Resolution: worksforme
Keywords: init.d stop() |
---------------------------+------------------------------------------------
Changes (by ingvar):
* status: new => closed
* resolution: => worksforme
Comment:
This is already the default in rpm packages from RHEL5 and up. RHEL4
packages or packages built without setting %rhel or %fedora (for example
suse) will get a default behaviour without -p, for max compatibility.
From the spec file:
%if 0%{?fedora}%{?rhel} == 0 || 0%{?rhel} <= 4 && 0%{?fedora} <= 8
# Old style daemon function
sed -i 's,--pidfile \$pidfile,,g;
s,status -p \$pidfile,status,g;
s,killproc -p \$pidfile,killproc,g' \
redhat/varnish.initrc redhat/varnishlog.initrc
redhat/varnishncsa.initrc
%endif
--
Ticket URL: <http://varnish-cache.org/trac/ticket/969#comment:3>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list