[Nut-upsuser] CyberPower Value 2200E-GP

David Varley davidavarley at gmail.com
Fri Dec 17 12:51:21 UTC 2010

Regarding my observation that the processes keep running after I "sudo
service nut stop", I found this isn't exactly the case. I think what happens
is that if I forget the "sudo" in front of the command, it comes up with the
"Stopping Nut Tools... Done" line, as if it worked, however it actually
failed and the processes are still running. If I then start the services
again, it actually starts another instance, that is there are two copies of
the usb driver running. (And leaving complaining messages in the log!)
If I then stop the services (correctly, with the sudo) one still remains,
and it can only be stopped with an explicit kill command. This is what I was

As far as setting the shutdown command in a script run when hibernating, I
did this. I created a script, 48nut, in /etc/pm/sleep.d, as follows:

# If we are hibernating due to power-fail, initiate a delayed UPS shutdown
and then stop the nut services
# If we are thawing after this event, start the nut service
# DAV 17DEC10

   if (test -f /etc/killpower)
        case "$1" in
                        echo "Initiating UPS Powerdown Sequence"
                        /sbin/upsdrvctl shutdown
                        echo "Stopping nut service"
                        service nut stop
                        service nut start
                *) exit $NA

Unfortunately it didn't work, perhaps the service is stopped before the
shutdown has a chance to take effect. In /var/log/pm-suspend.log. On
hibernate I see:

/etc/pm/sleep.d/48nut hibernate hibernate:Initiating UPS Powerdown Sequence
*Startup timer elapsed, continuing...*
Network UPS Tools - UPS driver controller 2.4.3
Stopping nut service
 * Stopping Network UPS Tools
/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:not applicable.

Then on thaw I see:

/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate:not applicable.
/etc/pm/sleep.d/48nut thaw hibernate: * Starting Network UPS Tools

however the shutdown never occurs, and after the thaw the nut services are
not running!
If I have the shutdown command in the script, but not the command to stop
the nut services, then the UPS does shut down.

So, for now I'm going back to my single line SHUTDWNCMD which actually

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20101217/9573ae8b/attachment.htm>

More information about the Nut-upsuser mailing list