public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joost Roeleveld <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Runlevels, ordering initscripts and running them in background
Date: Sun, 20 May 2012 19:59:40 +0200	[thread overview]
Message-ID: <2695263.nTGWH9Ye2d@eve> (raw)
In-Reply-To: <20120516141519.79e51913@digimed.co.uk>

On Wednesday, May 16, 2012 02:15:19 PM Neil Bothwick wrote:
> On Wed, 16 May 2012 09:40:26 +0100, Ignas Anikevicius wrote:
> > I want to do this, so that I do not have to wait while non-crucial
> > services are being started (e.g. fcron, bitlbee, ntpd to name a few).
> > Maybe it is possible to somehow prioritize the initscripts?
> 
> Yes it is. The initscripts themselves have such a mechanism, using the
> before and after statements, for example making sure that network
> services are started after the network is brought up. You can add your
> own rules to the daemons' config files in /etc/conf.d or to /etc/rc.conf.
> 
> To have bitlbee start after xdm either add
> 
> rc_after="xdm"
> 
> to /etc/conf.d/bitlbee or put
> 
> rc_bitlbee_after="xdm"
> 
> in /etc/rc.conf. Both have the same effect, it depends on whether you
> want to put all these settings together or in the individual services'
> config files.

Putting them in /etc/rc.conf makes it simpler to maintain the init-scripts 
when updating packages.
I used to put these things in the init-scripts and occasionally forgot about 
some of these during an update.

--
Joost



  parent reply	other threads:[~2012-05-20 18:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  8:40 [gentoo-user] Runlevels, ordering initscripts and running them in background Ignas Anikevicius
2012-05-16 12:13 ` Canek Peláez Valdés
2012-05-16 12:35   ` Dale
2012-05-16 14:55   ` Ignas Anikevicius
2012-05-16 12:43 ` [gentoo-user] " walt
2012-05-17  0:41   ` Walter Dnes
2012-05-19 17:13     ` walt
2012-05-18 19:59   ` Suspend to {RAM,Disk] (was: Re: [gentoo-user] Re: Runlevels, ordering initscripts and running them in background) Alex Schuster
2012-05-18 21:42     ` [gentoo-user] Re: Suspend to {RAM,Disk] Ignas Anikevicius
2012-05-18 22:09       ` Volker Armin Hemmann
2012-05-18 22:26         ` Canek Peláez Valdés
2012-05-18 22:37           ` Volker Armin Hemmann
2012-05-18 23:36             ` Canek Peláez Valdés
2012-05-18 23:45               ` Canek Peláez Valdés
2012-05-19  0:26       ` Alex Schuster
2012-05-16 13:15 ` [gentoo-user] Runlevels, ordering initscripts and running them in background Neil Bothwick
2012-05-16 14:50   ` Ignas Anikevicius
2012-05-20 17:59   ` Joost Roeleveld [this message]
2012-05-20 20:20     ` 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=2695263.nTGWH9Ye2d@eve \
    --to=joost@antarean.org \
    --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