Date: Mon, 24 Nov 1997 09:23:47 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: Dan Roberts <droberts@gwis.com> Cc: isp@freebsd.org Subject: Re: freebsd equiv of inittab Message-ID: <Pine.BSF.3.96.971124091427.12602D-100000@gdi.uoregon.edu> In-Reply-To: <Pine.BSI.3.95.971122134542.1056J-100000@gwis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Nov 1997, Dan Roberts wrote: > I'm attempting to set up automatic shutdown on my ISP's FreeBSD servers > when the power runs out on our UPS. The only suitable daemons I could > find for the task are powerd and upsd, both intended for use with Linux. > The problem I run into is that Linux has /etc/inittab and FreeBSD does > not. I'm sure there's got to either be a FreeBSD version of upsd out > there, or at the very least a BSD equivelent of inittab so that I can hack > the daemon.. can anyone help me with this? Thanks! I'm not sure what Linux's inittab does, is it just a startup script or is there more to it? If they can standalone and monitor the serial port themselves they could run under the emulator. In any case, there is a FreeBSD-native upsd. It can talk to APC SmartUPSs in smart mode and is extensible if you have the protocol spec. You can fetch it from: http://cre8tivegroup.com/upsd.html Grab rev 2.0.1.6. Or it's on the FreeBSD CDROM in /xperimnt/upsd. It builds and installs cleanly (make && make install). There isn't much documentation, but the sample config files in sample/ should be enough to get you started. I'm writing some manpages and as soon as I get some specs for other units and implement some other features I'll put out an add-on release. Just put the desired config file in /etc/upsd.conf and fire off upsd. I'm using it right now on a SmartUPS 600 and it does the job quite nicely. If anyone out there knows of good places to get smart protocol specs for Best Power, Exide, or other units (other than asking directly) let me know. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971124091427.12602D-100000>
