commit: 731a3affdce31e2971a84cde11df2d122049ec99 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Fri Apr 3 02:21:46 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Apr 8 14:37:04 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=731a3aff
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 init.d/local.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/local.in b/init.d/local.in index 63f8598..254135c 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
