Commit 3cd7e16b authored by Tatuya Kamada's avatar Tatuya Kamada

Such a wrapper script should call the command with exec function.

Otherwise, extra process will be created, and the script will not pass the
stdin to the sub process. (see man execv)
Also, $@ variable should be used with double quotes when you want to pass the
parameters as is.
parent d2d727b5
......@@ -3,6 +3,4 @@
DAEMON_OPTS="-a %(varnish_ip)s:%(varnishd_server_port)s \
-n %(varnish_instance_name)s"
# exporting PATH here so that it will pass the PATH variable to the subprocess
export PATH
%(varnishlog_binary)s ${DAEMON_OPTS} $@
exec %(varnishlog_binary)s ${DAEMON_OPTS} "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment