Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Invoking site-specific programs at reboot
@ 1995-07-01  4:00 Wong Pui Ming
  1995-07-02  4:00 ` Murray S. Kucherawy
  0 siblings, 1 reply; 3+ messages in thread
From: Wong Pui Ming @ 1995-07-01  4:00 UTC (permalink / raw)


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 ? )

--
          ___                                                     ___
          L_|_                                                   _|_J
         ( -O>                                                   <O- )
      ___//\J +-------------------------------------------------+ L/\\___
     //-,\    | WONG Pui-ming       Email: pm@hkbu.edu.hk       |    /,-\\
    || / \\___L System Support Programmer, Computer Centre      J___// \ ||
  _ ''/\/ '---J Hong Kong Baptist University                    L---' \/\'' _
 / \ //\\.    | 224 Waterloo Road , HONG KONG                   |    .//\\ / \
|_/\'/  ||    +-------------------------------------------------+    ||  \'/\_|
    '   ||_                                                         _||   '
        |__)                                                       (__|



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Invoking site-specific programs at reboot
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Murray S. Kucherawy @ 1995-07-02  4:00 UTC (permalink / raw)


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.  --



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Invoking site-specific programs at reboot
  1995-07-02  4:00 ` Murray S. Kucherawy
@ 1995-07-03  4:00   ` Simon Rosenthal
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Rosenthal @ 1995-07-03  4:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-07-03  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox