From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ngf8N-0000ha-Sx for garchives@archives.gentoo.org; Sun, 14 Feb 2010 14:07:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E949BE06D7; Sun, 14 Feb 2010 14:06:32 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id C2717E06D7 for ; Sun, 14 Feb 2010 14:06:32 +0000 (UTC) Received: from math.princeton.edu ([128.112.18.16]) by sentinel.math.Princeton.EDU with esmtp (Exim 4.69) (envelope-from ) id 1Ngf7H-0007rw-NB for gentoo-user@lists.gentoo.org; Sun, 14 Feb 2010 09:06:32 -0500 Received: from math.Princeton.EDU (localhost.localdomain [127.0.0.1]) by math.Princeton.EDU (8.13.8/8.13.8) with ESMTP id o1EE6V4P006171 for ; Sun, 14 Feb 2010 09:06:31 -0500 Received: (from wwong@localhost) by math.Princeton.EDU (8.13.8/8.13.8/Submit) id o1EE6VYn006168 for gentoo-user@lists.gentoo.org; Sun, 14 Feb 2010 09:06:31 -0500 Date: Sun, 14 Feb 2010 09:06:31 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Adding dependencies in init scripts Message-ID: <20100214140631.GA5618@math.princeton.edu> References: <201002112222.50699.dirk.heinrichs@online.de> <47a330c51002131725h1011d64ek296e02f57b138c5e@mail.gmail.com> <47a330c51002131751q6877d124rc1f659a8a065ce8@mail.gmail.com> <201002141007.47890.dirk.heinrichs@online.de> <47a330c51002140356x1c154ee1ra910a95bf2a6040d@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47a330c51002140356x1c154ee1ra910a95bf2a6040d@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Archives-Salt: 64897118-660a-4d2b-bc0b-f7ba7d4c5a2a X-Archives-Hash: 52caf6dc8fb054fcf7589a93c3f64655 Damian: On Sun, Feb 14, 2010 at 12:56:14PM +0100, Damian wrote: > I understand, but that isn't what I want, because when I boot up, I > don't always start up mpd. > > > Maybe a combination of both > > > > rc_after="mpdscrible" > > rc_need="mpdscrible" > > > > in /etc/conf.d/mpd could also work. > That's the problem. No matter what I put in /etc/conf.d/mpd the init > script seems to ignore it. Even if I write > rc_need="more money" > it will be ignored. Although the config file is read when I restart mpd. I am getting rather confused by this back and forth (I thought I understood what you wanted and Dirk and other's answers should be right, but now I am not so sure). Can you answer the following for me just to make sure we are on the same page? (a) What is mpdscribble? My understanding is that it is a service that tells other things what is currently playing on mpd? That it is actually a client of mpd? Is it actually a daemon/service? (b) What actually is the desired behaviour? From the last e-mail I am under the impression you don't always want to have the mpd daemon running, but you want to be able to bring up /etc/init.d/mpd and automatically have mpdscribble started? Can you give me a description of what commands you want to execute and what you want to accomplish with those? (c) I noticed that in your previous e-mail you spelled it mpdscrible with only one b. Is that a typo in the e-mail, or is it actually how you have it in /etc/conf.d/mpd? emerge --search suggests that mpdscribble is spelled with two b's. (d) What versions of openrc and baselayout are you using? Cheers, W -- Willie W. Wong wwong@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton