[Nut-upsuser] Start up script fails [/etc/killpower]

Charles Lepple clepple at gmail.com
Sat Jan 31 22:14:30 UTC 2015


On Jan 31, 2015, at 3:09 PM, Melvin Call <melvincall979 at gmail.com> wrote:

> One last question if you don't mind. I noticed the "default" POWERDOWNFLAG is
> set to /etc/killpower, but I changed that to /tmp and modified my umountroot
> script to mount it read only too, because I know it gets wiped on reboot. Is
> there anything that removes /etc/killpower on reboot, or a more compelling
> reason to put killpower in /etc, other than it is usually not on a separate
> partition?

I'll be honest, /etc/killpower has been that way for a long time, and I haven't really followed up on why.

It looks like upsmon removes it at startup in the clear_pdflag() function (if it was indeed created by upsmon last shutdown).

-- 
Charles Lepple
clepple at gmail






More information about the Nut-upsuser mailing list