2006/9/13, Pino Mauro <[EMAIL PROTECTED]>:
Hi to all, i install nut and it's work perfectly but when i start upsmon i
recive the message:
POWERDOWNFLAG (/etc/killpower) does not contain the upsmon magic string
My upmon.conf contain:
MONITOR [EMAIL PROTECTED] 1 orion91 carlos81 master
SHUTDOWNCMD "/sbin/shutdown -h +0"
HOSTSYNC 15
POWERDOWNFLAG /etc/killpower
FINALDELAY 5
My killpower scrit in /etc/killpower contain:
do you mean the below script is named "/etc/killpower".
if so, the problem is here since the file exist, and obviously can be
created with the before mentioned magic!
/etc/killpower is a flag created by upsmon upon shutdown, when an ups
poweroff is needed.
#!/bin/bash
if (test -f /etc/killpower)
then
echo "Killing the power, bye!"
/sbin/upsdrvctl shutdown
sleep 120
# uh oh... the UPS poweroff failed!
# you probably should reboot here to avoid getting stuck
# *** see the section on power races below ***
fi
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser