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 _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

