From afa9d2a750cacdc4bc6ac90cb936593d882b93dc Mon Sep 17 00:00:00 2001 From: "Moritz Grosch (LittleFox)" Date: Wed, 4 Apr 2018 10:32:15 +0200 Subject: [PATCH] Change init file: give all arguments to script This pull request changes the init file to give all arguments given to it to the actual perl script. Why: We use Daemon::Control in a custom script with lots of arguments. We then store most of the arguments in the init code block in form of environment variables. We then use the init scripts as shortcuts for specific configurations, i.e. "customer_1_start", "customer_2_start" or "dev_littlefox_start". Sometimes we want to change some arguments from the defaults saved that way and this patch allows us to do this. --- lib/Daemon/Control.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Daemon/Control.pm b/lib/Daemon/Control.pm index cc357d4..00e78fc 100644 --- a/lib/Daemon/Control.pm +++ b/lib/Daemon/Control.pm @@ -729,7 +729,7 @@ __DATA__ if [ -x [% SCRIPT %] ]; then - [% SCRIPT %] $1 + [% SCRIPT %] $@ else echo "Required program [% SCRIPT %] not found!" exit 1;