aboutsummaryrefslogtreecommitdiff
path: root/sh/supervise-daemon.sh
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-09-20 11:23:46 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-09-20 11:33:56 -0500
commitd6c30ab12a3b335ac57cd1f0ac00231bb34fc0c4 (patch)
treeedaf942728c0bf7b72b2bfe5bf168830645a76ff /sh/supervise-daemon.sh
parent0d1f1010c299a95332f224c3be9e8dfdd85eec54 (diff)
Revert "Remove eval calls from supervisor start functions"
This reverts commit 0d1f1010c299a95332f224c3be9e8dfdd85eec54. We need the eval in case someone uses something like: command_args="this \"is a\" test" This is related to #77.
Diffstat (limited to 'sh/supervise-daemon.sh')
-rw-r--r--sh/supervise-daemon.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sh/supervise-daemon.sh b/sh/supervise-daemon.sh
index 389635f6..bff68a4c 100644
--- a/sh/supervise-daemon.sh
+++ b/sh/supervise-daemon.sh
@@ -19,7 +19,10 @@ supervise_start()
fi
ebegin "Starting ${name:-$RC_SVCNAME}"
- supervise-daemon --start \
+ # The eval call is necessary for cases like:
+ # command_args="this \"is a\" test"
+ # to work properly.
+ eval supervise-daemon --start \
${chroot:+--chroot} $chroot \
${pidfile:+--pidfile} $pidfile \
${command_user+--user} $command_user \