public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Adding dependencies in init scripts
@ 2010-02-11 21:22 heini
  2010-02-11 22:35 ` Neil Bothwick
  2010-02-14  1:25 ` Damian
  0 siblings, 2 replies; 20+ messages in thread
From: heini @ 2010-02-11 21:22 UTC (permalink / raw
  To: gentoo-user

Am Donnerstag 11 Februar 2010 18:00:09 schrieb Neil Bothwick:
> On Thu, 11 Feb 2010 13:15:04 +0100, Damian wrote:
> > > I found this by looking in the cups init script.  It should help.
> > > 
> > > depend() {
> > >    use net
> > >    need avahi-daemon dbus
> > >    before nfs
> > >    after logger
> > > }
> > 
> > I've tried putting "after mpdscribble"  without success. Also the
> > problem with this approach is that if I update mpd, I will have to
> > modify the init script again.
> 
> That only means that is mdscribble is in the runlevel, start mpd after
> it. Try "need mpdscribble". The handbook and one of the man pages explain
> these options.
> 
> You can add /etc/init.d to CONFIG_PROTECT and remove it from
> CONFIG_PROTECT_MASK in make.conf.
> 
> Or you could remove mpd from the default runlevel and call both the init
> scripts from /etc/conf.d/local.

Nope. Lookup /etc/rc.conf:

##############################################################################
# SERVICE CONFIGURATION VARIABLES
# These variables are documented here, but should be configured in
# /etc/conf.d/foo for service foo and NOT enabled here unless you
# really want them to work on a global basis.

# Some daemons are started and stopped via start-stop-daemon.
# We can set some things on a per service basis, like the nicelevel.
#export SSD_NICELEVEL="-19"

# Pass ulimit parameters 
#rc_ulimit="-u 30"

# It's possible to define extra dependencies for services like so
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"

# You can also enable the above commands here for each service. Below is an
# example for service foo.
#rc_foo_config="/etc/foo"
#rc_foo_need="openvpn"
#rc_foo_after="clock"

# You can also remove dependencies.
# This is mainly used for saying which servies do NOT provide net.
#rc_net_tap0_provide="!net"

HTH...

	Dirk



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [gentoo-user] Adding dependencies in init scripts
@ 2010-02-11  9:55 Damian
  2010-02-11 10:21 ` Dale
  0 siblings, 1 reply; 20+ messages in thread
From: Damian @ 2010-02-11  9:55 UTC (permalink / raw
  To: gentoo-user

Hello,

I would like to configure my system so that every time I start mpd
(via /etc/init.d/mpd)  mpdscrible is started as well. What is the best
way to achieve this?

Thanks in advance,
Damian.



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-03-07  9:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox