Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fjcp60!uunetelroynjpl.nasa.gov!lll-winken!iggy.GW.Vitalink.COM!widener!cs.widDner.edu!brendan From: brendan@cs.widener.edu (Brendan Kehoe) Newsgroups: comp.unix.admin Subject: There can be something like 'shutdownrc' at SunOS 4.1 ? Message-ID: Date: 29 May 91 14:46:50 GMT Lines: 22 Re <868@cadlab.subhink.ORG> <1214@keele.keele.ac.uk> R comfeh2Organization: Widener CS Dept Lines: 29 In-Reply-To: csd35@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@cs.widDner.edu Widener University in Chester, PA A Bloody Sun-Dec War Zone #! rnews 840