From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa4f9,f223558cd07716c8 X-Google-Attributes: gidfa4f9,public X-Google-Thread: fee84,f223558cd07716c8 X-Google-Attributes: gidfee84,public From: Robert Mulley Subject: Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now Date: 1999/09/30 Message-ID: <37F2E9FF.2B2155B6@gnsconsulting.com.au>#1/1 X-Deja-AN: 531002469 Distribution: world Content-Transfer-Encoding: 7bit References: <3794D51C.4DF69E8E@thimble.demon.co.uk> <379AFFC1.B38704C7@EUnet.yu> X-Original-NNTP-Posting-Host: 153.107.21.3 X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: ozemail.com.au 938666525 153.107.252.11 (Thu, 30 Sep 1999 14:42:05 EST) Organization: OzEmail Ltd, Australia MIME-Version: 1.0 NNTP-Posting-Date: Thu, 30 Sep 1999 14:42:05 EST Newsgroups: comp.unix.osf.osf1,comp.databases.oracle.server Nikola Milutinovic wrote: > Alan Garde wrote: > > > > Read the man page for shutdown. > > > > Shutdown -r now does a broadcast kill, it does NOT run the /sbin/rc0.d > > scripts. If you want them to run, do a shutdown now to get to single user mode > > and then a shutdown -r now from single-user mode. > > From single user mode you can only issue "halt" or "reboot". "shutdown" > will try to write to some log files on /var file system, which is > unmounted in SU mode. You'll get error message, no big deal. > > Nix. If a shutdown from multi-user mode does a broadcast kill why wouldn't it do the same under single user mode? The only way I'm aware of is to use init 0 (to halt the machine) or setup using /etc/inittab your own runlevel 6 which runs all the kill scripts (from highest to lowest), then as K00reboot just issue a shutdown -r now. This will process all scripts and then reboot. BTW It shouldn't be noted that both "init s" and "shutdown now" do not bring the system to the same state as if you had of booted to single user mode. So that Nix's statement is wrong if you have gone from multi-user to single-user. The disks do not get unmounted. Robert.