From: simon@locus.com (Simon Rosenthal)
Subject: Re: Invoking site-specific programs at reboot
Date: 1995/07/03 [thread overview]
Message-ID: <3t904n$hr1@lccma.bos.locus.com> (raw)
In-Reply-To: 3t6es8$mfq@vertex.tor.hookup.net
Murray S. Kucherawy (mskucher@vertex.tor.hookup.net) wrote:
: In article <3t31ma$1ful@ctsc.hkbc.hk>,
: Wong Pui Ming <s11976@net2.hkbu.edu.hk> wrote:
: >The BSD way of doing it is so simple, i.e. put local stuff in file
: >/etc/rc.local so they are invoked at system startup
...
...
: Here's what I do:
: (0) DO NOT touch /etc/inittab.
: (1) Copy one of the scripts in /sbin/init.d to another file in the same
: directory named after what it is you want to boot (e.g. inn).
: (2) Modify the file you just created to startup/shutdown/restart/whatever
: this new service, as appropriate.
: (3) Look in /sbin/init.d/rc3.d; there are a ton of scripts there named
: "Sxxyyy" where "xx" is a number and "yyy" is a service name. These
: are actually symbolic links pointing to files in /sbin/init.d.
: Pick a number that's not in use, and make a symlink to the service
: script you created in /sbin/init.d. For example, let's say you want
: to make INN start up at boot, and you created /sbin/init.d/inn, and
: the number 41 is available; do:
: cd /sbin/rc3.d
: ln -s ../init.d/inn S41inn
Just a warning...
The scripts execute in order ; i.e.
for f in /sbin/rc3.d/S*
do
<script>
done
so your choice of number will need to take into account any dependencies
that your subsystem has on other ones having already started.
- Simon
_________________________________________________________________________
Simon Rosenthal: (simon@locus.com)
Locus Computing Corporation
Burlington, MA 01803
prev parent reply other threads:[~1995-07-03 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-01 4:00 Invoking site-specific programs at reboot Wong Pui Ming
1995-07-02 4:00 ` Murray S. Kucherawy
1995-07-03 4:00 ` Simon Rosenthal [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox