[Nut-upsuser] POWERDOWNFLAG (/etc/killpower) does not contain the upsmon magic string!!!

Arnaud Quette aquette.dev at gmail.com
Fri Sep 15 16:50:42 UTC 2006


2006/9/13, Pino Mauro <pinomauro81 at yahoo.it>:
> 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 myups at theseo 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/



More information about the Nut-upsuser mailing list