* init processes under DigitalUnix 3.2c?
@ 1996-02-20 5:00 J. David Purnell
1996-02-21 5:00 ` Henrik Wist
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: J. David Purnell @ 1996-02-20 5:00 UTC (permalink / raw)
I'm wondering, what's the correct way to configure a process to run at
boot time?
To simply set up some daemon to run at boot time:
Should I be adding entries to /etc/inittab?
Or should I be adding files to /sbin/init.d?
It seems like I'd just add a script which starts the daemon to
/sbin/init.d and then make a link to it in /sbin/rc3.d
Is this right? Are there any rules for the numbering scheme of files in
/sbin/rc3.d?
TIA.
--
name thing: J. David Purnell mailthing: dave@heffalumps.dmv.com
web thing: http://www.dmv.com/~dave
quote thing: Who of you by worrying can add a single hour
to his life? -Jesus
What me worry? -Alfred E. Neuman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: init processes under DigitalUnix 3.2c?
1996-02-20 5:00 init processes under DigitalUnix 3.2c? J. David Purnell
@ 1996-02-21 5:00 ` Henrik Wist
1996-02-22 5:00 ` Tony Jones
1996-02-22 5:00 ` Dave Parker
1996-02-22 5:00 ` Allan Gottlieb
2 siblings, 1 reply; 5+ messages in thread
From: Henrik Wist @ 1996-02-21 5:00 UTC (permalink / raw)
J. David Purnell (dave@heffalumps.dmv.com) wrote:
: I'm wondering, what's the correct way to configure a process to run at
: boot time?
: To simply set up some daemon to run at boot time:
: Should I be adding entries to /etc/inittab?
No.
: Or should I be adding files to /sbin/init.d?
Yes.
:
: It seems like I'd just add a script which starts the daemon to
: /sbin/init.d and then make a link to it in /sbin/rc3.d
That's correct.
:
: Is this right? Are there any rules for the numbering scheme of files in
: /sbin/rc3.d?
I don't think there are any rules for that. Just choose a unuses number.
Regards,
Henrik
---------------------------------------------------------------------
"Woher soll ich wissen, was ich denke, bevor |Tel.:+49/89/3089598
ich nicht gehoert habe, was ich sage?" |smail: Destouchesstr.71
IRC: |GOOSE| | 80796 Munich
Systemadministrator am Lehrstuhl A fuer Mechanik| Germany
---------------------------------------------------------------------
>>>http://www.lam.mw.tu-muenchen.de/mitarb/wist.html<<<
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: init processes under DigitalUnix 3.2c?
1996-02-20 5:00 init processes under DigitalUnix 3.2c? J. David Purnell
1996-02-21 5:00 ` Henrik Wist
1996-02-22 5:00 ` Dave Parker
@ 1996-02-22 5:00 ` Allan Gottlieb
2 siblings, 0 replies; 5+ messages in thread
From: Allan Gottlieb @ 1996-02-22 5:00 UTC (permalink / raw)
wist@lam.mw.tu-muenchen.de (Henrik Wist) writes:
> J. David Purnell (dave@heffalumps.dmv.com) wrote:
> : Is this right? Are there any rules for the numbering scheme of files in
> : /sbin/rc3.d?
> I don't think there are any rules for that. Just choose a unuses number.
I believe the files are run in numerical order so bigger ones can
depend on smaller.
--
Allan Gottlieb gottlieb@nyu.edu
New York University http://cs.nyu.edu/cs/faculty/gottlieb/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: init processes under DigitalUnix 3.2c?
1996-02-20 5:00 init processes under DigitalUnix 3.2c? J. David Purnell
1996-02-21 5:00 ` Henrik Wist
@ 1996-02-22 5:00 ` Dave Parker
1996-02-22 5:00 ` Allan Gottlieb
2 siblings, 0 replies; 5+ messages in thread
From: Dave Parker @ 1996-02-22 5:00 UTC (permalink / raw)
In article <dave-2002961316360001@heffalumps.dmv.com>, dave@heffalumps.dmv.com (J. David Purnell) writes:
|>
|>
|>I'm wondering, what's the correct way to configure a process to run at
|>boot time?
|>
|>To simply set up some daemon to run at boot time:
|>
|>Should I be adding entries to /etc/inittab?
|>Or should I be adding files to /sbin/init.d?
|>
|>
|>It seems like I'd just add a script which starts the daemon to
|>/sbin/init.d and then make a link to it in /sbin/rc3.d
|>
|>Is this right? Are there any rules for the numbering scheme of files in
|>/sbin/rc3.d?
|>
Dave,
What you're doing with init.d and rc3.d is a perfectly acceptable thing to do.
As far as the numbering scheme goes, you just want to make sure that your
process starts at a logical time. In other words, if your script needs the
network to be up, number it so that it runs after the network startup scripts.
Other then that, you are free to choose the number of your liking.
Just keep in mind that this method is a one-shot deal. If your process dies
(assuming it needs to always run), this won't cause it to automatically restart.
You could use an entry in inittab for that.
Dave
----------------------------------------------------------------------
Dave Parker djp@unx.dec.com
UNIX Engineering Digital Equipment Corp
The comments, opinions, etc. within are mine.....
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: init processes under DigitalUnix 3.2c?
1996-02-21 5:00 ` Henrik Wist
@ 1996-02-22 5:00 ` Tony Jones
0 siblings, 0 replies; 5+ messages in thread
From: Tony Jones @ 1996-02-22 5:00 UTC (permalink / raw)
Henrik Wist (wist@lam.mw.tu-muenchen.de) wrote:
: : Is this right? Are there any rules for the numbering scheme of files in
: : /sbin/rc3.d?
The numbering system is such that globbing controls the execution order -
I assume you are aware of this ? (S00XXX will precede S01XXX etc).
Your numeric portion has to be 2 digits (S100XX is bad). Remember how globbing
works.
: I don't think there are any rules for that. Just choose a unuses number.
It's probably good practice to start any local init.d scripts after the
vendor one's have run, especially if you have other services that you
expect to be running.
On my system for example, I'd start local stuff at S85 (S80/crashdc is the
last vendor script to be started)
tony
--
Tony Jones (tony@sunquest.com)
Lead Systems Specialist
UNIX Technical Resource Group
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-02-22 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-20 5:00 init processes under DigitalUnix 3.2c? J. David Purnell
1996-02-21 5:00 ` Henrik Wist
1996-02-22 5:00 ` Tony Jones
1996-02-22 5:00 ` Dave Parker
1996-02-22 5:00 ` Allan Gottlieb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox