Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcsun!corton!gouldfr!vogon!vogon!philip From: philip@vogon.cetia.fr (Philip Peake) Newsgroups: comp.unix.admin Subject: Re: Is there something like 'shutdownrc' at SunOS 4.1 ? Message-ID: <1991Jun5.080920.686@cetia.fr> Date: 5 Jun 91 08:09:20 GMT References: <868@cadlab.sublink.ORG> <1214@keele.keele.ac.uk> Sender: news@cetia.fr (News Manager) Reply-To: philip@vogon.cetia.fr (Philip Peake) Organization: CETIA, France Lines: 32 In article <1214@keele.keele.ac.uk>, csd35@seq1.keele.ac.uk (Jonathan Knight) writes: |> From article <868@cadlab.sublink.ORG>, by albani@cadlab.sublink.ORG (Lanfranco Albani): |> > smeets@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