[Varnish] #1593: addition of checkconfig in init scripts

Varnish varnish-bugs at varnish-cache.org
Mon Sep 8 14:57:53 CEST 2014


#1593: addition of checkconfig in init scripts
---------------------------------+-------------------------
 Reporter:  Tin                  |       Type:  enhancement
   Status:  new                  |   Priority:  low
Milestone:  Varnish 4.0 release  |  Component:  packaging
  Version:  unknown              |   Severity:  minor
 Keywords:                       |
---------------------------------+-------------------------
 It would be a nice addition if something like

 checkconfig() {
     if [ -f "$CONF" ]; then
     start-stop-daemon \
         --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- \
         -P ${PIDFILE} ${DAEMON_OPTS} -p vcc_err_unref=off -C \
         -n /tmp > /dev/null && echo "Syntax ok (warnings can be ignored)"
     else
         echo "$CONF is  unset or does not point to a file"
     fi

 would be added to the init scripts (instead of having to add it with each
 new release again manually).

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



More information about the varnish-bugs mailing list