From owner-freebsd-isp Mon Nov 24 11:52:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA28712 for isp-outgoing; Mon, 24 Nov 1997 11:52:50 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from adsight.com (adsight.com [207.86.2.34]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA28696 for ; Mon, 24 Nov 1997 11:52:45 -0800 (PST) (envelope-from webadmin@adsight.com) Received: from localhost (webadmin@localhost) by adsight.com (8.8.7/8.8.7) with SMTP id OAA02781; Mon, 24 Nov 1997 14:50:29 -0500 (EST) Date: Mon, 24 Nov 1997 14:50:29 -0500 (EST) From: Sam Magee To: Dan Roberts cc: freebsd-isp@freebsd.org Subject: Re: freebsd equiv of inittab In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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 }