[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rc.local?



On Sat, Sep 23, 2000 at 05:53:38PM -0500, Joseph Carter wrote:
> On Fri, Sep 22, 2000 at 08:07:46PM +0200, Svante Signell wrote:
> > Probably this question has been asked before, but anyway:
> > Where to put local entries for boot? In which order, and which
> > configuration files are incorporated in the boot process?
> 
> /etc/rc.boot - that is, if you mean for your local system.  Packages
> should use /etc/rcS.d, but the last time it came up we all agreed that
> /etc/rc.boot should be local sysadmin territory.  Put a script in there
> and it will be run.  I believe the order is processed in ascending ASCII
> order intentionally, so plan accordingly if you need something to happen
> first and something else to happen later.  This may be a side-effect of
> ext2, but I don't believe so.

/etc/rc.boot is read *after* /etc/rcS.d.  Either put your scripts
directly in /etc/rcS.d or better, put them in /etc/init.d and link to
them with a name like S73foobar from /etc/rcS.d and with a name like
K13foobar from /etc/rc0.d and /etc/rc6.d.  Then it will be executed
with an argument of "start" at priority 73 during bootup and with an
argument of "stop" at priority 13 during shutdown.  Have a look also
at update-rc.d.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: