From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c495d349a299fd95 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-24 06:46:46 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!decwrl!pa.dec.com!src.dec.com!crl.dec.com!nntpd.lkg.dec.com!alingo.zk3.dec.com!werme From: werme@alingo.zk3.dec.com (Eric Werme) Newsgroups: comp.unix.osf.osf1 Subject: Re: Does 'shutdown' really shutdown? Date: 24 Jun 94 13:33:01 GMT Organization: Digital Equipment Corporation Message-ID: References: <2ubec7Ebqk@uni-erlangen.de> Reply-To: werme@zk3.dec.com NNTP-Posting-Host: alingo.zk3.dec.com peter@nmti.com (Peter da Silva) writes: >In article <2ubec7Ebqk@uni-erlangen.de>, >Horst Luehrsen 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.