home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume18 / upsd / part01 / ups < prev   
Text File  |  1991-04-10  |  296b  |  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.