Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!yunexus!davecb From: davecb@yunexus.YorkU.CA (David Collier-Brown) Newsgroups: comp.sys.misc Subject: Re: Auto shutdown (on power down) box Keywords: UPS power shutdown unix epoch Message-ID: <14904@yunexus.YorkU.CA> Date: 8 Sep 90 17:58:12 GMT References: <1990Sep7.174211@curly.Viewlogic.COM> Organization: York U. Computing Services Lines: 16 alan@curly.Viewlogic.COM (Alan Medsker) writes: >I've got an Epoch-1 Infinitestorage NFS server, and a UPS that it runs >off of. I'd like to find a way to have the server shut down >gracefully unattended when the power has been down for x minutes. An almost pure-software approach is the following -- wire a ups-delivering-power signal to dtr on a serial port take the getty off that port write a program to watch the port and implement your shutdown policies based on the period the line has been asserted. --dave -- David Collier-Brown, | davecb@Nexus.YorkU.CA, ...!yunexus!davecb or 72 Abitibi Ave., | {toronto area...}lethe!dave or just Willowdale, Ontario, | postmaster@{nexus.}yorku.ca CANADA. 416-223-8968 | work phone (416) 736-5257 x 22075