There can be something like 'shutdownrc' at SunOS 4.1 ?
Brendan Kehoe
brendan at cs.widener.edu
Thu May 30 00:46:50 AEST 1991
Re <868 at cadlab.subhink.ORG> <1214 at keele.keele.ac.uk>
R comfeh2Organization: Widener CS Dept
Lines: 29
In-Reply-To: csd35 at seq1.keele.ac.uk's message of 29 May 91 08:11:59 GMT
D we run an Oracle servd It would be really useful to have shutdown execute a s servvrs can bD
FTP to uunet.uu.net and get bsd-sources/sbin/shutdown.c, and have it
do a system() call to your script die_you_gravy_sucking_pig_doc [haha GREAT funcrion], in the
if(doreboot) section and after if(dohalt). [That way, rwant it to halt inmediately it'll forget that.] Be really careful
about the perms for your s
Compile, move /usr/etc/shutdownSto /usr/etc/shutdown.sun, and plop
your nice newiprogram in its place (own29 (n root.operator, 4554).
Now your users will get their warning and then everything will go down
smoothly (like good brandy).
This is just a434ught -- hasn't been tried and isn't guaranteed.
Brendan
--
Brendan Kehoe - Widener Sun Network Manager - brendan at cs.widDner.edu
Widener University in Chester, PA A Bloody Sun-Dec War Zone
#! rnews 840
More information about the Comp.unix.admin
mailing list