2002-10-14 16:14:33 +00:00
|
|
|
+--------------- nut
|
2004-02-09 06:48:48 +00:00
|
|
|
| Using the Nut package in an OpenBSD environment:
|
2002-10-14 16:14:33 +00:00
|
|
|
|
|
|
|
|
| Once you have the config files under /etc/nut set up properly, the
|
|
|
|
| following block can be added to your /etc/rc.local file to start nut.
|
|
|
|
|
|
|
|
|
| # Start Nut
|
2003-10-23 00:30:01 +00:00
|
|
|
| if [ -x ${PREFIX}/bin/upsdrvctl ]; then
|
2002-10-14 16:14:33 +00:00
|
|
|
| echo -n ' nut'
|
2004-10-03 03:13:10 +00:00
|
|
|
| ${PREFIX}/bin/upsdrvctl start > /dev/null 2>&1
|
2003-10-23 00:30:01 +00:00
|
|
|
| ${PREFIX}/sbin/upsd > /dev/null 2>&1
|
|
|
|
| ${PREFIX}/sbin/upsmon > /dev/null 2>&1
|
2002-10-14 16:14:33 +00:00
|
|
|
| fi
|
|
|
|
|
|
|
|
|
| You may also be interested in the "-i" flag to upsd, see upsd(8).
|
|
|
|
+--------------- nut
|