Gentoo Archives: gentoo-user

From: Damian <damian.only@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Adding dependencies in init scripts
Date: Sun, 14 Feb 2010 14:54:54
Message-Id: 47a330c51002140654k3625936ds6422580d81176691@mail.gmail.com
In Reply to: Re: [gentoo-user] Adding dependencies in init scripts by Willie Wong
1 > I am getting rather confused by this back and forth (I thought I
2 > understood what you wanted and Dirk and other's answers should be
3 > right, but now I am not so sure). Can you answer the following for me
4 > just to make sure we are on the same page?
5 Sure, I'm sorry for the confusion.
6
7 > (a) What is mpdscribble? My understanding is that it is a service that
8 > tells other things what is currently playing on mpd? That it is
9 > actually a client of mpd? Is it actually a daemon/service?
10 In short, mpdscribble is a daemon that submits the tracks you play
11 (using mpd) to sites such as libre.fm. In that sense it is a client of
12 mpd. It is possible to start mpdscribble by using
13 /etc/init.d/mpdscribble start
14
15 > (b) What actually is the desired behaviour? From the last e-mail I am
16 > under the impression you don't always want to have the mpd daemon
17 > running, but you want to be able to bring up /etc/init.d/mpd and
18 > automatically have mpdscribble started? Can you give me a description
19 > of what commands you want to execute and what you want to accomplish
20 > with those?
21 Yes, that's exactly what I want. If I start mpd using the command
22 /etc/init.d/mpd start
23
24 I would like mpdscribble to be automatically started. What I have as
25 output instead:
26 $ /etc/init.d/mpd stop && /etc/init.d/mpd start &&
27 /etc/init.d/mpdscribble status
28 * Caching service dependencies ...
29 * Service 'syslog-ng' already provides 'logger'!;
30 * Not adding service 'metalog'...
31 [ ok ]
32 * Service mpd stopping
33 * Service mpd stopped
34 * Service mpd starting
35 * Service mpd started
36 * status: stopped
37
38
39 > (c) I noticed that in your previous e-mail you spelled it mpdscrible
40 > with only one b. Is that a typo in the e-mail, or is it actually how
41 > you have it in /etc/conf.d/mpd? emerge --search suggests that
42 > mpdscribble is spelled with two b's.
43 That's right, it is a typo in my previous mail. The config file has no typo.
44
45 > (d) What versions of openrc and baselayout are you using?
46 openrc is not installed, and the baselayout version is 1.12.13.
47
48 Thanks,
49 Damian.

Replies

Subject Author
Re: [gentoo-user] Adding dependencies in init scripts Willie Wong <wwong@××××××××××××××.EDU>
Re: [gentoo-user] Adding dependencies in init scripts Marc Joliet <marcec@×××.de>