Date: Mon, 24 Nov 1997 14:50:29 -0500 (EST) From: Sam Magee <webadmin@adsight.com> To: Dan Roberts <droberts@gwis.com> Cc: freebsd-isp@freebsd.org Subject: Re: freebsd equiv of inittab Message-ID: <Pine.BSF.3.96.971124144658.2752A-100000@adsight.com> In-Reply-To: <Pine.BSI.3.95.971124094827.1056W-100000@gwis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Which UPS are you using? I have an APC Smart-UPS V/S 650 which I've > > setup using upsd. If you're using one of these UPS's, I could send > > you my upsd.conf which works fine with the V/S series. > > I'm using APC SmartUPS 1400's.. if I'm not mistaken, the V/S is rack > mountable? I don't have my pamphlet in front of me, but would think that > these units would be compatible none-the-less. I'd appreciate a look at > your .conf file. > > Is the upsd that you're using the FreeBSD version or the stock Linux > version? As far as I can tell, the Linux version will not work with BSD > systems, though I could be mistaken. > > Thanks. > > -- > Dan Roberts, http://gwis.com/~droberts Gateway to Internet Services > sysadmin/ircadmin, barovia.oh.us.dal.net for Internet access in NE Ohio > http://barovia.dal.net - Strahd on DALnet http://www.gwis.com > > I'm sure my config file won't work for you as it was tweaked for the V/S series (not as smart as the regular "Smart-UPS") but here it is for anyone who's interested. Check Doug White's response from today as well for setting up the regular Smart-UPS. -- Sam --------------------------------------------------- # $Id: upsd.conf,v 2.0 1996/01/28 11:50:37 alexis Exp $ # # UPS Daemon # The Wild Wind Communications, 1995, 1996 # # See file LICENSE for the distribution terms of this software. # ups "smart-ups-vs" (420) proto "apc-smart-vs" { device "/dev/cuaa0" speed 2400 read-timeout 2 write-block-size 1 write-block-delay 50 queue-size 64 } every 5 { poll "status" # PowerChute does it so do we } on "initialize" != "SM" { poll "initialize" after 60 every 60 { log emerg "Cannot put the UPS into smart mode!" } } every 300 { # poll the UPS poll "last-test" log info "last test: %last-test%" } on "line-fail" every 20 { log emerg "*** ALERT! Source power line failed, logout NOW! ***" } on "line-restore" { log emerg "Source power line restored, you may continue your work." } on "line-fail" after 300 { log emerg "*** ALERT! THE SYSTEM IS SHUTTING DOWN! ***" poll "shutdown" poll "shutdown" poll "power-test" poll "power-test" poll "shutdown" poll "shutdown" sleep 2 exec "/sbin/halt &" poll "power-test" poll "shutdown" poll "power-test" poll "shutdown" poll "power-test" poll "shutdown" poll "power-test" sleep 1000 # let us wait peacefully }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971124144658.2752A-100000>
