[nut-Patches][313195] M ake snmp-ups driver wait for network

nut-patches at alioth.debian.org nut-patches at alioth.debian.org
Wed Jun 29 13:21:10 UTC 2011


Patches item #313195, was opened at 2011-06-29 15:21 by Manuel Bouyer
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313195&group_id=30602

Status: Open
Priority: 3
Submitted By: Manuel Bouyer (bouyer-guest)
Assigned to: Nobody (None)
Summary: M ake snmp-ups driver wait for network 
Category: None
Group: None
Resolution: None


Initial Comment:
When starting the snmp-ups driver while the network is not yet fully up (for example because the network switch has not finished booting yet), it will exits after the snmp timeout. Although this could be fixed in startup scripts, I don't feel it's optimal, especially when you have several driver to start and want to use upsdrvctl. The attached patch makes snmp-ups loop in the init phase if it fails because of timeout. upsdrvctl will leave it run in backgroud after some time, allowing the boot to complete. Once the network if full up, snmp-ups will complete initialisation and upsd will connect automatically.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313195&group_id=30602



More information about the NUT-tracker mailing list