[Nut-upsuser] POWERDOWNFLAG (/etc/killpower) does not contain the
Peter Selinger
selinger at mathstat.dal.ca
Wed Sep 13 16:16:54 UTC 2006
Pino Mauro wrote:
>
> 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 killpower scrit in /etc/killpower contain:
>
> #!/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
>
>
> Where is the problem! What's the upsmon magic string?
> Help me please!
Hi Pino,
you are not supposed to put that script in /etc/killpower, but in your
system's shutdown scripts. You should *not* create a file called
/etc/killpower; that file is used by upsmon for internal purposes.
The location of your shutdown scripts depends on your operating
system; it could be something like /etc/rc.d/init.d/halt
-- Peter
More information about the Nut-upsuser
mailing list