Runlevels, ordering initscripts and running them in background
On Sun, 20 May 2012 19:59:40 +0200, Joost Roeleveld wrote:
> > 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.
Don't put them in the init scripts, those are overwritten during an
update, either rc.conf or the config files in /etc/conf.d.
If you want to arrange the order of several items, rc.conf is the logical
place, but if you just want to make sure service A starts before service
B, /etc/conf.d/[AB] is more sensible IMO.