Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy)
Subject: Re: Invoking site-specific programs at reboot
Date: 1995/07/02	[thread overview]
Message-ID: <3t6es8$mfq@vertex.tor.hookup.net> (raw)
In-Reply-To: 3t31ma$1ful@ctsc.hkbc.hk

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
>Now I am new to this OSF/1 way of doing such things, which not only
>use the /etc/inittab , but complicate things further by having the
>rc.n (n is run level) scripts and all those files under /sbin/rcn.d  
>(and these files are further links to other directories)
>So, can someone recommend the best/neat way for me to start my
>local scripts/programs when booting multi-user (Should I change the inittab, 
>or the rc.n scripts or put files under the rcn.d directories or a
>combination of all these ways ? )

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

You're all set.  You can now do "/sbin/init.d/inn start" to start INN
or "/sbin/init.d/inn stop" to stop INN.  Also, inittab runs each file in
/sbin/rc3.d with the "start" parameter at boot time.
-- 
Murray S. Kucherawy ==========================================================
Software Manager            HookUp Communication Corporation - Ontario, CANADA
E-mail: mskucher@hookup.net          NIC Handle "MSK"           (905) 847-8000
--  We are Intel of Borg.  Division is futile.  You will be approximated.  --



  reply	other threads:[~1995-07-02  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 [this message]
1995-07-03  4:00   ` Simon Rosenthal
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