Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325691 - net-analyzer/munin-1.4.4 ebegin start message
Summary: net-analyzer/munin-1.4.4 ebegin start message
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325693
  Show dependency tree
 
Reported: 2010-06-26 11:41 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2010-07-27 19:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/tmp/emerge--info (emerge--info,15.72 KB, text/plain)
2010-06-26 11:41 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-26 11:41:15 UTC
from /var/log/rc.log :
 * Starting Music Player Daemon ...
 [ ok ]
/etc/init.d/munin-node: line 18: ebegin: command not found
/etc/init.d/munin-node: line 20: eend: command not found
 * ERROR: munin-node failed to start

This may be a baselayout 2, openrc, or portage 2.2 issue.

In pratice, the service is up and running (even better that before :D )

It's the only service complaining about this.
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-26 11:41:32 UTC
Created attachment 236631 [details]
/tmp/emerge--info
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-26 12:52:08 UTC
may be related with bug 325693 ?

I finally could copy the initial console:

* Starting lighttpd ...                                            [ ok ]
* Starting Music Player Daemon ...                                 [ ok ]
/etc/init.d/munin-node: line 18: ebegin: command not found
/etc/init.d/munin-node: line 20: eend: command not found
 * ERROR: munin-node failed to start
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-02 15:32:56 UTC
Sorry, I can't reproduce with baselayout 1 or 2. The interesting thing about comment #2 is that lighttpd's init script uses ebegin and that didn't complain.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-19 19:16:38 UTC
(In reply to comment #3)
> Sorry, I can't reproduce with baselayout 1 or 2. The interesting thing about
> comment #2 is that lighttpd's init script uses ebegin and that didn't complain.

And mpd's.
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-27 18:36:53 UTC
Got on nerves; WANNA FIX THIS. Compared line by line with several other system scripts.

The message goes away when I comment the PATH line:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
to
#PATH=/sbin:/bin:/usr/sbin:/usr/bin

When I comment it, and do echo $PATH from within start, the following comes out:

/lib64/rc/sbin:/lib64/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

So, somehow, to get an init script working, *I* (AMD64) need at least one of /lib64/rc/sbin:/lib64/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin while /sbin:/bin:/usr/sbin:/usr/bin is not enough.

For those where it works, I guess that either you are in x86 32b, or you did not try to migrate from baselayout1 to baselayout2+openrc.

I am not in mood to search exactly which folder is the key of the problem, but this should be enough for a good maint to fix the issue.

Doing logical substraction, we need to add one of
/lib64/rc/sbin:/lib64/rc/bin:/usr/local/bin:/usr/local/sbin

Considering that both /local are empty, we have this left:
/lib64/rc/sbin:/lib64/rc/bin

And ... oh ... in the second one we find ebegin and eend scripts ... symlinks to /sbin/rc

I'll try
PATH=/lib64/rc/sbin:/lib64/rc/bin:/sbin:/bin:/usr/sbin:/usr/bin
for next reboot
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-27 18:50:40 UTC
(In reply to comment #5)
 
> The message goes away when I comment the PATH line:
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> to
> #PATH=/sbin:/bin:/usr/sbin:/usr/bin

Where did you do this exactly?

> For those where it works, I guess that either you are in x86 32b, or you did
> not try to migrate from baselayout1 to baselayout2+openrc.

Nope, amd64, BL2+openrc here.
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-27 19:10:23 UTC
uranus ~ # diff /mnt/arch/arch/uranus/uranus-n5/etc/init.d/munin-node /etc/init.d/munin-node
6c6,8
< PATH=/sbin:/bin:/usr/sbin:/usr/bin
---
> #PATH=/sbin:/bin:/usr/sbin:/usr/bin
> # Actual path when I comment this: /lib64/rc/sbin:/lib64/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
> PATH=/lib64/rc/sbin:/lib64/rc/bin:/sbin:/bin:/usr/sbin:/usr/bin
29a32,33
> #PATH=/sbin:/bin:/usr/sbin:/usr/bin   # Commented by Doublehp
> #     use logger dns
uranus ~ #

So, in short, just replace
PATH=/sbin:/bin:/usr/sbin:/usr/bin
with
PATH=/lib64/rc/sbin:/lib64/rc/bin:/sbin:/bin:/usr/sbin:/usr/bin
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-27 19:22:19 UTC
That is interesting to see. There hasn't been a PATH defined in the init file since its inception..in 2007.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_1.3.3-r1?revision=1.1&view=markup

Did you add it there? Why?
Comment 9 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-27 19:38:23 UTC
Ah, then, I know what's wrong.

PEBCAK

INVALID

I had to add it because I define a "custom PATH" in /etc/env, and Munin finds it too much permissive and unsecure. To WA Munin security checks, I had to add PATH there, to make it happy. Thus my fault, thus PEBCAK. Not a distro concern, thus nothing to fix :)

Sorry.

I should have add a comment in the script when i added PATH
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-27 19:40:15 UTC
ok, closing then.