Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Adding dependencies in init scripts
Date: Sun, 14 Feb 2010 15:49:00
Message-Id: 26A8F8DC-727F-403C-B73F-431B93407D7E@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Adding dependencies in init scripts by Damian
1 On 14 Feb 2010, at 11:56, Damian wrote:
2 > Hi Dirk,
3 >
4 >> In your first post you stated that you want to have both started,
5 >> right? But
6 >> "after" is about order, not dependency. I'd say you need to put
7 >>
8 >> rc_need="mpd"
9 >>
10 >> into /etc/conf.d/mpdscrible and put mpdscrible into default
11 >> runlevel, not mpd.
12 > I understand, but that isn't what I want, because when I boot up, I
13 > don't always start up mpd.
14
15 So don't put either of them into the default runlevel. The point is to
16 get one of them to start when the other does.
17
18 >> Maybe a combination of both
19 >>
20 >> rc_after="mpdscrible"
21 >> rc_need="mpdscrible"
22 >>
23 >> in /etc/conf.d/mpd could also work.
24 > That's the problem. No matter what I put in /etc/conf.d/mpd the init
25 > script seems to ignore it. Even if I write
26 > rc_need="more money"
27 > it will be ignored. Although the config file is read when I restart
28 > mpd.
29
30 Is it possible that you & Dirk are using different versions of
31 baselayout?
32
33 $ grep rc_need /etc/init.d/*
34 $ grep rc_need /etc/conf.d/*
35 $ eix -I baselayout
36 [I] sys-apps/baselayout
37 Available versions: [P]1.11.15-r3 1.12.11.1 ~1.12.12 1.12.13
38 ~2.0.0 ~2.0.1 {bootstrap build static unicode}
39 Installed versions: 1.12.13(03:11:46 09/02/10)(unicode -
40 bootstrap -build -static)
41 Homepage: http://www.gentoo.org/
42 Description: Filesystem baselayout and init scripts
43
44 $
45
46 Stroller.

Replies

Subject Author
Re: [gentoo-user] Adding dependencies in init scripts Dirk Heinrichs <dirk.heinrichs@××××××.de>