#!%(shell_path)s DAEMON_OPTS="-F \ -a %(varnish_ip)s:%(varnishd_server_port)s \ -T %(varnish_ip)s:%(varnishd_manager_port)s \ -n %(varnish_instance_name)s \ -f %(vcl_file)s \ -s file,%(varnish_data)s/varnish_storage.bin,1G" PIDFILE=%(varnishd_pid_file)s # exporting PATH here so that it will pass the PATH variable to the subprocess export PATH # If unset, or set to "0" or "no", exit if [ -z "${VARNISHLOG_ENABLED}" ] || \ [ "${VARNISHLOG_ENABLED}" = "0" ] || \ [ "${VARNISHLOG_ENABLED}" = "no" ]; then exit 0; fi exec %(varnishlog_binary)s ${DAEMON_OPTS} 2>&1