* Using rc0.d
@ 1997-09-01 4:00 Stephen Mulcahy
1997-09-03 4:00 ` Michael Bradford
1997-09-04 4:00 ` Dan Duncan
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Mulcahy @ 1997-09-01 4:00 UTC (permalink / raw)
Hi,
I've been trying to setup some scripts that will
be executed when a machine running Digital Unix 4.0b
is rebooted with the 'shutdown -r <time>' command-line.
Maybe I've misunderstood the use of the rcX.d directories
but I was under the impression that if I put a script in here
with the name K70foo.sh for instance that when the machine
was rebooted, that the script K70foo.sh would be executed.
So far, I have failed to get this working. I have however,
gotten a similar script S95foo.sh in the rc3.d working that
successfully executes when the machine is brought up to
run level 3. I wonder, has anyone else had similar
difficulties or is anyone successfully using the rc0.d
directory for this sort of thing?
I suppose I could always put some entries in the rc0 file
but this seems a little inelegant.
Thanks for your help,
-stephen
----
Stephen Mulcahy, Software Engineer,
Digital Equipment International BV, Ballybrit Business Park, Galway, Ireland
Disclaimer: This posting does not neccesarily represent the
views/opinions or thoughts of my employers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using rc0.d
1997-09-01 4:00 Using rc0.d Stephen Mulcahy
@ 1997-09-03 4:00 ` Michael Bradford
1997-09-04 4:00 ` Dan Duncan
1 sibling, 0 replies; 3+ messages in thread
From: Michael Bradford @ 1997-09-03 4:00 UTC (permalink / raw)
smulcahy@soggey.ilo.dec.com (Stephen Mulcahy) wrote:
>I've been trying to setup some scripts that will
>be executed when a machine running Digital Unix 4.0b
>is rebooted with the 'shutdown -r <time>' command-line.
>Maybe I've misunderstood the use of the rcX.d directories
>but I was under the impression that if I put a script in here
>with the name K70foo.sh for instance that when the machine
>was rebooted, that the script K70foo.sh would be executed.
>So far, I have failed to get this working. I have however,
>gotten a similar script S95foo.sh in the rc3.d working that
>successfully executes when the machine is brought up to
>run level 3. I wonder, has anyone else had similar
>difficulties or is anyone successfully using the rc0.d
>directory for this sort of thing?
As it says in the man pages for shutdown, if you use this command, it
does NOT run the rc0.d scripts (unlike virtually every other UNIX
operating system that I have encountered). It says that you should
take the machine to single user mode (using init 0) and then type boot
at the >>> prompt, if you wish to run the scripts. Yeah, great!
Digital have obviously decided that this is not the way to do it at
last and in either 4.0C or 4.0D (I can't remember which), the scripts
WILL be run if you use shutdown. Now we can shutdown our databases,
etc. in a nice orderly way.
Michael Bradford
TeleDanmark EDB
Denmark
mjbr@tdk.dk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using rc0.d
1997-09-01 4:00 Using rc0.d Stephen Mulcahy
1997-09-03 4:00 ` Michael Bradford
@ 1997-09-04 4:00 ` Dan Duncan
1 sibling, 0 replies; 3+ messages in thread
From: Dan Duncan @ 1997-09-04 4:00 UTC (permalink / raw)
As I recall, Stephen Mulcahy (smulcahy@soggey.ilo.dec.com) wrote:
->I've been trying to setup some scripts that will
->be executed when a machine running Digital Unix 4.0b
->is rebooted with the 'shutdown -r <time>' command-line.
From 'man shutdown':
Note that the -h and -r flags use a broadcast kill signal
and not the run level transition scripts. To use the run level transition
scripts, execute the shutdown command without the -h or -r flag.
-DanD
--
# Dan D (kd4igw) dand@rmii.com dand@frottage.com http://rmii.com/~dand
# Any smoothly functioning technology will have the appearence of magic.
# ARTHUR C CLARKE
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-09-04 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-01 4:00 Using rc0.d Stephen Mulcahy
1997-09-03 4:00 ` Michael Bradford
1997-09-04 4:00 ` Dan Duncan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox