* /sbin/rc0.d/K00enoracle not run with shutdown -r now
@ 1999-07-20 4:00 Huy Vu
1999-07-20 4:00 ` Alan Garde
1999-07-21 4:00 ` Ryurick M. Hristev
0 siblings, 2 replies; 5+ messages in thread
From: Huy Vu @ 1999-07-20 4:00 UTC (permalink / raw)
Hi all,
Where should I put the script to shutdown Oracle databases under Dec Unix
4.0D?
I put it in /sbin/rc0.d/K00enoracle but it doesn't execute in reboot the
server with the command 'shutdown -r now'.
I have to run manually the command /sbin/rc0.d/K00enoracle to shutdown the
databases before shutdown the server.
Thank in advance for any helps.
H.V
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now
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-07-21 4:00 ` Ryurick M. Hristev
1 sibling, 1 reply; 5+ messages in thread
From: Alan Garde @ 1999-07-20 4:00 UTC (permalink / raw)
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.
Alan
Huy Vu wrote:
> Hi all,
>
> Where should I put the script to shutdown Oracle databases under Dec Unix
> 4.0D?
>
> I put it in /sbin/rc0.d/K00enoracle but it doesn't execute in reboot the
> server with the command 'shutdown -r now'.
>
> I have to run manually the command /sbin/rc0.d/K00enoracle to shutdown the
> databases before shutdown the server.
>
> Thank in advance for any helps.
>
> H.V
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now
1999-07-20 4:00 ` Alan Garde
@ 1999-07-25 4:00 ` Nikola Milutinovic
1999-09-30 4:00 ` Robert Mulley
0 siblings, 1 reply; 5+ messages in thread
From: Nikola Milutinovic @ 1999-07-25 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now
1999-07-25 4:00 ` Nikola Milutinovic
@ 1999-09-30 4:00 ` Robert Mulley
0 siblings, 0 replies; 5+ messages in thread
From: Robert Mulley @ 1999-09-30 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /sbin/rc0.d/K00enoracle not run with shutdown -r now
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-21 4:00 ` Ryurick M. Hristev
1 sibling, 0 replies; 5+ messages in thread
From: Ryurick M. Hristev @ 1999-07-21 4:00 UTC (permalink / raw)
"Huy Vu" <huyv@usa.net> writes:
> Hi all,
>
> Where should I put the script to shutdown Oracle databases under Dec Unix
> 4.0D?
>
> I put it in /sbin/rc0.d/K00enoracle but it doesn't execute in reboot the
> server with the command 'shutdown -r now'.
I suggest you try the K01 level.
Cheers,
--
______________________________________________________________________
Ryurick M. Hristev ()..()/^\/^\ -<:-)
R.Hristev@phys.canterbury.ac.nz \/ \#/\#/\) What opinions ?
______________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-09-30 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1999-07-21 4:00 ` Ryurick M. Hristev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox