From: Robert Mulley <robert@gnsconsulting.com.au>
Subject: Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now
Date: 1999/09/30 [thread overview]
Message-ID: <37F2E9FF.2B2155B6@gnsconsulting.com.au> (raw)
In-Reply-To: 379AFFC1.B38704C7@EUnet.yu
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.
next prev parent reply other threads:[~1999-09-30 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-20 4:00 /sbin/rc0.d/K00enoracle not run with shutdown -r now Huy Vu
1999-07-20 4:00 ` Alan Garde
1999-07-25 4:00 ` Nikola Milutinovic
1999-09-30 4:00 ` Robert Mulley [this message]
1999-07-21 4:00 ` Ryurick M. Hristev
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