Xref: utzoo comp.unix.admin:1970 comp.unix.questions:31659 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.unix.admin,comp.unix.questions Subject: Re: Is there something like 'shutdownrc' at SunOS 4.1 ? Message-ID: <1991May25.122537.19449@thunder.mcrcim.mcgill.edu> Date: 25 May 91 12:25:37 GMT References: <138@speedy.ada.cci.de> Organization: McGill Research Centre for Intelligent Machines Lines: 30 In article <138@speedy.ada.cci.de>, smeets@speedy.ada.cci.de (Vincent Smeets) writes: > I am using SunOS 4.1 and I want to execute some commands just before > the system is going down (shuting down Oracle and Teamwork). That's why shutting down sends a SIGTERM to everything. Processes that need to clean up after themselves should catch it and do whatever they feel they must. If Oracle and/or Teamwork doesn't do this, file a bug report with the vendor. If you're paying for support, *demand* a fix. > Is there something like a 'shutdownrc' file that will be executed > wenn the shutdowntime has elapsed? Not that I know of. If the commands in question execute fairly quickly, you could write a daemon which sleeps waiting for a SIGTERM and then runs whatever needs to be run. > I have looked at the 'shutdown' program itself, but that is no > shellscript so I can't change anything. Dontcha just love them binary-only distributions? (Biggest gripe I have with Sun on this point, at the moment, is add_client....) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu