Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!lll-winken!elroy.jpl.nasa.gov!ncar!gatech!kd4nc!km4ba!alan From: alan@km4ba.UUCP (Alan Barrow) Newsgroups: comp.sys.hp Subject: Re: How do I shutdown an HP9000/332 on orders from a UPS. Message-ID: <230@km4ba.UUCP> Date: 15 Jan 91 07:12:27 GMT References: <98@cscdec.cs.com> <63300022@hpl-opus.hpl.hp.com> Organization: km4ba's packet radio gateway, Atlanta GA. Lines: 28 In regard to various signals, I seem to remember that you can specify which signal to use from killall. Since I believe that shutdown uses killall, you could do a "lightweight" kill, wait a while, then do a serious kill (-9, which is default for killall, I think). Again, you are dealing with the lesser of evils: (your program)- hostile termination VS (powerfail w/o shutdown)- multiple hostile termination unclean disks etc. BTW, there is a signal associated with pwrfails. Your UPS watcher could send this signal to init. init then takes action with a new state, and a script. It is discussed in init(1m), I believe. Good Luck! Alan Barrow (km4ba) ..!gatech!kd4nc!km4ba!alan These thoughts are mine, not my employer's!