Is there something like 'shutdownrc' at SunOS 4.1 ?

Philip Peake philip at vogon.cetia.fr
Wed Jun 5 18:09:20 AEST 1991


In article <1214 at keele.keele.ac.uk>, csd35 at seq1.keele.ac.uk (Jonathan Knight) writes:
|> From article <868 at cadlab.sublink.ORG>, by albani at cadlab.sublink.ORG (Lanfranco Albani):
|> > smeets at speedy.ada.cci.de (Vincent Smeets) writes:
|> >>I have looked at the 'shutdown' program itself, but that is no
|> >>shellscript so I can't change anything.
|> > 
|> > Easy, make your own! :-)
|> > Rename /etc/shutdown as /etc/shutdown.bin, write down a script like this:
|> 
|> 
|> Nope, that's not really as useful as shutdown running a script.  Suppose
|> we run an Oracle server, then what we want is the Oracle server to shut
|> down at shutdown time, not before anyone has had the shutdown message.
|> It would be really useful to have shutdown execute a script so that
|> servers can be neatly closed down at the right moment.

Am I missing something ? (maybe, since I keep as far away as possible
from SunOS). The replacement shell script would be something like:

Grab a message from the user - default to a generic message if only CR.
/etc/wall the message
sleep a little while
zap oracle
zap ingres
zap whatever
last warning before shutdown starts
sleep a bit
/etc/shutdown.bin

This would work - no ?

Philip



More information about the Comp.unix.admin mailing list