aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-04-02 21:21:46 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-04-08 09:37:04 -0500
commit731a3affdce31e2971a84cde11df2d122049ec99 (patch)
treeda5ebba2339289f9526d812361a0da5298ac9d16 /init.d
parent3e9bb3b021620654f99a0ead71ed73d34b5c6826 (diff)
Fix script execution in the local service
The local service should use eval when it executes scripts since it has the redirection set up in a variable. This fixes #50. X-Gentoo-Bug: 545012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545012
Diffstat (limited to 'init.d')
-rw-r--r--init.d/local.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/local.in b/init.d/local.in
index 63f85986..254135c8 100644
--- a/init.d/local.in
+++ b/init.d/local.in
@@ -20,7 +20,7 @@ start()
for file in @SYSCONFDIR@/local.d/*.start; do
if [ -x "${file}" ]; then
vebegin "Executing \"${file}\""
- "${file}" $redirect
+ eval "${file}" $redirect
retval=$?
if [ ${retval} -ne 0 ]; then
has_errors=1
@@ -59,7 +59,7 @@ stop()
for file in @SYSCONFDIR@/local.d/*.stop; do
if [ -x "${file}" ]; then
vebegin "Executing \"${file}\""
- "${file}" $redirect
+ eval "${file}" $redirect
retval=$?
if [ ${retval} -ne 0 ]; then
has_errors=1