Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mjbr@tdk.dk (Michael Bradford)
Subject: Re: Using rc0.d
Date: 1997/09/03	[thread overview]
Message-ID: <5uj0nv$bct$1@gatekeeeper.teledanmark.dk> (raw)
In-Reply-To: 5ue7go$5cr$1@mrnews.mro.dec.com


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




  reply	other threads:[~1997-09-03  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-01  4:00 Using rc0.d Stephen Mulcahy
1997-09-03  4:00 ` Michael Bradford [this message]
1997-09-04  4:00 ` Dan Duncan
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