aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-02-09 18:59:22 +0100
committerUlrich Müller <ulm@gentoo.org>2014-02-09 18:59:22 +0100
commit793813aedeea3aa4e9da86e45f703e910a56be86 (patch)
treebe340bd6cb0e3dc76534773be17ffaa511e70fee /modules
parentDo not source functions.sh in rc module, bug 373219. (diff)
downloadeselect-793813aedeea3aa4e9da86e45f703e910a56be86.tar.gz
eselect-793813aedeea3aa4e9da86e45f703e910a56be86.tar.bz2
eselect-793813aedeea3aa4e9da86e45f703e910a56be86.zip
Set PATH to service_* commands in rc module.
* modules/rc.eselect (show_script_status): Set proper PATH to service_* commands.
Diffstat (limited to 'modules')
-rw-r--r--modules/rc.eselect1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rc.eselect b/modules/rc.eselect
index dc8b0d5..f02abf7 100644
--- a/modules/rc.eselect
+++ b/modules/rc.eselect
@@ -64,6 +64,7 @@ find_unused_scripts() {
# output list entry for script $1 and show its status
show_script_status() {
local script=${1} status=unknown x
+ local PATH=/lib/rc/bin:${PATH} # path to service_* commands
for x in stopping starting inactive started stopped; do
if service_${x} ${script}; then