On Fri, 6 Jan 2017 11:40:20 +0100 Francesco Poli wrote:

> On Fri, 6 Jan 2017 11:05:50 +0100 Daniel Pocock wrote:
[...]
> > My UPS uses SNMP signalling, I wonder if that makes the daemon shut
> > down more slowly.
> 
> Maybe...

Have you determine how long should the restart action wait between the
stop and the start action?

The command

  # systemctl stop apcupsd ; systemctl start apcupsd

should reproduce the misbehavior in your case. Can you confirm?

Does 

  # systemctl stop apcupsd ; sleep 1 ; sleep 1 ; systemctl start apcupsd

suffice to avoid experiencing the misbehavior?

Or maybe

  # systemctl stop apcupsd ; sleep 2 ; sleep 2 ; systemctl start apcupsd

?

Or perhaps

  # systemctl stop apcupsd ; sleep 3; sleep 3 ; systemctl start apcupsd

?

Could you please perform some tests?


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgp2wVSZIEGw4.pgp
Description: PGP signature

Reply via email to