Such a wrapper script should call the command with exec function.
authorTatuya Kamada <tatuya@nexedi.com>
Sat, 25 Feb 2012 17:35:44 +0000 (02:35 +0900)
committerTatuya Kamada <tatuya@nexedi.com>
Sat, 25 Feb 2012 17:35:44 +0000 (02:35 +0900)
commit3cd7e16b4f3e41ae95e52ee6c42104d2f5c80eff
treefaae6291d7d2f75e591585297cb9dfebd957bed5
parentd2d727b5f21ebcf3516c0742565d2de1ea53d562
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.
slapos/recipe/generic_varnish/template/varnishlog.in