Displaying 4 results from an estimated 4 matches for "nut_prefix".
Did you mean:
enum_prefix
2009 May 25
0
FreeBSD installation procedure (updated)
...your configuration, you will need to configure the automatic
UPS shutdown (http://www.networkupstools.org/doc/2.2.0/shutdown.html).
Put the following sentence either into /etc/rc.shutdown script, or
into /usr/local/etc/rc.d/nut (inside the 'nut_poststop' section,
straight after the '${nut_prefix}/libexec/nut/upsdrvctl stop'
instruction):
# uncomment for rc.shutdown script
#
# nut_prefix=${nut_prefix-"/usr/local"}
if [ -r /etc/killpower ]; then
rm -f /etc/killpower
echo "Killing the power, bye!"
${nut_prefix}/libexec/nut/upsdrvctl -v shutdown
if [ $?...
2012 Jun 26
1
NUT MGE Pulsar Ellipse Premium 800: Changed NUT rw variables?
...to delay ups start-up:
gw[/root]# diff nut.mod nut.orig
34d33
< stop_precmd="nut_prestop"
41,50d39
< nut_prestop() {
< if (test -f /etc/killpower) then
< rm /etc/killpower
< sleep 5
< echo "Ordering UPS to delay-shutdown."
< ${nut_prefix}/bin/upsrw -s ups.delay.shutdown=80 -u user -p pass
mailfw at localhost
< ${nut_prefix}/bin/upsrw -s ups.delay.start=15 -u user -p pass
mailfw at localhost
< fi
< }
<
This script worked just fine for a number of years. Yesterday, while
looking the syslogs after a power fai...
2006 Aug 17
1
Powerdown on FreeBSD
Hi all,
I just bought a Trust 1000VA PW-4105 UPS.
I installed the UPS on FreeBSD 6.1, and installed NUT 2.0.3 via the FreeBSD
port.
I had no problems installing and configuring nut and the UPS to run with the
PowerMust driver.
My problem however is when I test the powerdown function by issuing the
command: 'upsmon -c fsd'
The UPS is cutting the power before the shutdown procedure
2014 Jun 19
1
upsd.conf - run as user option
On 6/19/2014 at 9:03 AM Charles Lepple wrote:
|On Jun 18, 2014, at 1:51 PM, Mike. <the.lists at mgm51.com> wrote:
|
|> The upsmon.conf has the option of setting RUN_AS_USER username
|>
|> Might it be possible to add a similar option to the upsd.conf
file?
|>
|> I see the -u command-line option for both upsmon and upsd,
however,
|> upsd doesn't seem to carry that