Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: werme@alingo.zk3.dec.com (Eric Werme)
Subject: Re: Does 'shutdown' really shutdown?
Date: 24 Jun 94 13:33:01 GMT	[thread overview]
Message-ID: <werme.772464781@alingo.zk3.dec.com> (raw)
In-Reply-To: id.JTMA1.5AF@nmti.com

peter@nmti.com (Peter da Silva) writes:

>In article <2ubec7Ebqk@uni-erlangen.de>,
>Horst Luehrsen <Horst.Luehrsen@Informatik.Uni-Erlangen.DE> wrote:
>> If we use shutdown -r to shutdown and reboot the machine, the machine shuts
>> down really fast and I think, it doesn't execute the /sbin/rc2.d/K00ingres,
>> but instead kills all processes.

>> Am I right with this guess? Or did I put K00ingres in the wrong directory?

>You're right.

You're wrong.  :-)

>You're being hosed by the BSD shutdown model. In BSD based systems it sends
>a signal 15 to all procs, waits "a reasonable time", then sends a signal 9.
>In System V based systems it sends a signal to init to change the run level,
>and then init's responsible for running shutdown scripts.

>DEC merges the two inits. For regular shutdown, it (or init, I'm not too clear)
>runs the shutdown scripts. For shutdown -r it runs the command "reboot". What
>it should do is set the run level to 6 and let init run reboot when it finishes
>changing the run level. The stock OSF inittab doesn't even *have* a run level
>six defined.

I'm not completely certain how the shutdown stuff really works, but
"shutdown -r" runs reboot *after* running rc0.d/K*.  I don't know if
rc2.d/K* is checked.

Put K00ingres in rc0.d and see if that works.  It will be executed as
"K00ingress stop".

-- 
Eric (Ric) Werme		| werme@zk3.dec.com
Digital Equipment Corp.		| This space intentionally left blank.


  reply	other threads:[~1994-06-24 13:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-23  7:41 Does 'shutdown' really shutdown? Horst Luehrsen
1994-06-23 15:54 ` Peter da Silva
1994-06-24 13:33   ` Eric Werme [this message]
1994-06-24 16:58     ` Peter da Silva
1994-06-27 13:18       ` Eric Werme
1994-06-27 15:42         ` Peter da Silva
1994-06-27 16:18           ` Digital Jesus
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