[Varnish] #969: init.d stop() function improvement

Varnish varnish-bugs at varnish-cache.org
Wed Jul 27 17:05:20 CEST 2011

#969: init.d stop() function improvement
 Reporter:  David Busby    |        Type:  enhancement
   Status:  new            |    Priority:  normal     
Milestone:                 |   Component:  varnishd   
  Version:  3.0.0          |    Severity:  normal     
 Keywords:  init.d stop()  |  
 If you have need to run multiple varnish instances on the same machine and
 still maintain an init.d script for each, the default stop() function can
 lead to problems due to

 killproc $prog

 This will infact kill all running varnishd processes, where if you run
 multiple instances on a single host, can be very bad.

 In this case a replacement

 killproc -p ${pidfile} -d 10 $prog

 Or similar can be used, the above is an adaption of the httpd init file
 (Replaceing $httpd with $prod).

Ticket URL: <http://www.varnish-cache.org/trac/ticket/969>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list