[Nut-upsuser] apc smart ups restart
Arjen de Korte
nut+users at de-korte.org
Mon May 14 11:03:19 UTC 2007
> Thanks for the quick response.
> I'm using the one that comes with Ubuntu Feisty: 2.0.5-1
> (http://packages.ubuntu.com/feisty/admin/nut)
I'm not that familiar with Unbutu, but since you're using a fairly recent
NUT version, my guess is that the problem is in the Unbutu halt script
and/or in the fact that you're no longer able to talk to the UPS at that
time. Typically, neat the end of it, there should be a call to 'upsdrvctl
shutdown' or a callback to the script that is used for starting and
stopping NUT.
What should happen when the power goes out and the batteries are low, is
that upsmon creates a flag (POWERDOWNFLAG in upsmon.conf) and then the
system is shutdown (SHUTDOWNCMD in upsmon.conf). Near the end of the halt
script of your system (when filesystems have been unmounted or remounted
read-only) you should check for the POWERDOWNFLAG and if it exists,
'upsdrvctl shutdown' should be called. Note that in order for this to
work, you need (read-only) access to the directory where the NUT drivers
are located and also to the USB subystem. If the latter has been
unmounted, NUT won't be able to instruct your UPS to shutdown.
Best regards, Arjen
More information about the Nut-upsuser
mailing list