home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3163 / S22ups < prev   
Encoding:
Text File  |  1991-04-04  |  296 b   |  15 lines

  1. #ident    "@(#)ups    1.0 - 91/03/30"
  2. #    UPS monitor daemon
  3.  
  4. # configure UPS daemon runtime
  5. export UPSPORT; UPSPORT=/dev/ttyFM00
  6. export UPSSHUT; UPSSHUT="/etc/shutdown -y -i0"
  7. export UPSLOG;  UPSLOG=/etc/upslog
  8. export UPSTIME; UPSTIME=10
  9.  
  10. set `who -r`
  11. if [ $9 = "S" -a -x /etc/upsd ]
  12. then
  13.     /etc/upsd
  14. fi
  15.