[Nut-upsuser] infosec e4

James HORLEY
Sun, 01 Sep 2013 01:09:08 -0000

Great, it's working fine.
I'm using upssched to shutdown computer after 15mn when on battery.
Should I trigger "upsmon -c fsd" with my script? I mean, is it the
normal
way to shutdown both computer and ups.

Best regards,

-----Message d'origine-----
From: Charles Lepple
Sent: Monday, August 26, 2013 3:07 AM
To: James HORLEY
Cc: nut-upsuser list
Subject: Re: [Nut-upsuser] infosec e4

On Aug 26, 2013, at 6:22 AM, James HORLEY wrote:

> I've download again nut source today from
> "https://github.com/networkupstools/nut/tree/voltronic-driver"
and try
> compiliing the voltronic-driver.

This branch has been merged in, and will be part of 2.7.1 when it is
released.

> The drivers is working fine (ie computer is shutting down) except for the
> shutdown of the ups.
> I can shutdown the ups by sending the command "shutdown.return"
but
> standard shutdown doesn't work.
>
> upsmon -K return:

"upsmon -K" is for use inside a shutdown script. (See the man page for
details.)

I think you want "upsmon -c fsd", which triggers the entire shutdown
sequence.