#!%(shell_path)s

DAEMON_OPTS="-F \
             -a %(varnish_ip)s:%(varnishd_server_port)s \
             -T %(varnish_ip)s:%(varnishd_manager_port)s \
             -t 0 \
             -p nuke_limit=500 \
             -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 we will pass the PATH variable to the subprocess
export PATH="%(gcc_location)s:$PATH"
exec %(varnishd_binary)s -P ${PIDFILE} ${DAEMON_OPTS} 2>&1
