Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect:master commit in: /, modules/
Date: Sun, 09 Feb 2014 17:57:51
Message-Id: 1391968762.793813aedeea3aa4e9da86e45f703e910a56be86.ulm@gentoo
1 commit: 793813aedeea3aa4e9da86e45f703e910a56be86
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 9 17:59:22 2014 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 17:59:22 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=793813ae
7
8 Set PATH to service_* commands in rc module.
9
10 * modules/rc.eselect (show_script_status): Set proper PATH to service_*
11 commands.
12
13 ---
14 ChangeLog | 1 +
15 modules/rc.eselect | 1 +
16 2 files changed, 2 insertions(+)
17
18 diff --git a/ChangeLog b/ChangeLog
19 index a4cec21..c9d20fe 100644
20 --- a/ChangeLog
21 +++ b/ChangeLog
22 @@ -5,6 +5,7 @@
23 Remove baselayout-1 compatibility code.
24 (source_rc_functions): Remove function.
25 (do_show): Don't call source_rc_functions.
26 + (show_script_status): Set proper PATH to service_* commands.
27
28 2014-01-19 Ulrich Müller <ulm@g.o>
29
30
31 diff --git a/modules/rc.eselect b/modules/rc.eselect
32 index dc8b0d5..f02abf7 100644
33 --- a/modules/rc.eselect
34 +++ b/modules/rc.eselect
35 @@ -64,6 +64,7 @@ find_unused_scripts() {
36 # output list entry for script $1 and show its status
37 show_script_status() {
38 local script=${1} status=unknown x
39 + local PATH=/lib/rc/bin:${PATH} # path to service_* commands
40
41 for x in stopping starting inactive started stopped; do
42 if service_${x} ${script}; then