public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dirk Heinrichs" <dirk.heinrichs@online.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Adding dependencies in init scripts
Date: Sun, 14 Feb 2010 10:07:47 +0100	[thread overview]
Message-ID: <201002141007.47890.dirk.heinrichs@online.de> (raw)
In-Reply-To: 47a330c51002131751q6877d124rc1f659a8a065ce8@mail.gmail.com

Am Sonntag 14 Februar 2010 02:51:57 schrieb Damian:
> On Sun, Feb 14, 2010 at 2:25 AM, Damian <damian.only@gmail.com> wrote:
> >> HTH...
> >> 
> >>        Dirk
> > 
> > Thanks a lot for your responses. That looks just like what I needed.
> 
> Ok, I just cannot make this work.
> 
> I've created a file  /etc/conf.d/mpd with the following line
> rc_after="mpdscrible"
> 
> But the init script seems to ignore it. No matter what I put in
> /etc/conf.d/mpd . The gentoo handbook doesn't say anything about it.
> I'm clearly missing something, but I don't know what it is.

In your first post you stated that you want to have both started, right? But 
"after" is about order, not dependency. I'd say you need to put

rc_need="mpd"

into /etc/conf.d/mpdscrible and put mpdscrible into default runlevel, not mpd.

Maybe a combination of both

rc_after="mpdscrible"
rc_need="mpdscrible"

in /etc/conf.d/mpd could also work.

HTH...

	Dirk



  reply	other threads:[~2010-02-14  9:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 21:22 [gentoo-user] Adding dependencies in init scripts heini
2010-02-11 22:35 ` Neil Bothwick
2010-02-14  1:25 ` Damian
2010-02-14  1:51   ` Damian
2010-02-14  9:07     ` Dirk Heinrichs [this message]
2010-02-14 11:56       ` Damian
2010-02-14 14:06         ` Willie Wong
2010-02-14 14:54           ` Damian
2010-02-14 16:02             ` Willie Wong
2010-02-14 20:08             ` Marc Joliet
2010-02-14 15:48         ` Stroller
2010-02-14 17:00           ` Dirk Heinrichs
2010-02-14 18:46             ` Damian
2010-03-07  9:10               ` Damian
2010-02-14 16:56         ` Dirk Heinrichs
  -- strict thread matches above, loose matches on Subject: below --
2010-02-11  9:55 Damian
2010-02-11 10:21 ` Dale
2010-02-11 12:15   ` Damian
2010-02-11 12:39     ` Dale
2010-02-11 17:00     ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002141007.47890.dirk.heinrichs@online.de \
    --to=dirk.heinrichs@online.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox