[Nut-upsdev] Systemd sequencing problem in Fedora 16,17
Stuart D Gathman
stuart at bmsi.com
Mon Oct 15 22:12:26 UTC 2012
I am running nut in Fedora 17 (previously 16). There is a bug in
startup that I think I understand well enough to explain. The symptom
is that upsd refuses to start at boot time, complaining:
Oct 12 22:28:22 melissa upsdrvctl[868]: Network UPS Tools - UPS driver
controller 2.6.5
Oct 12 22:28:22 melissa bestfortress[937]: Startup successful
Oct 12 22:28:22 melissa upsd[938]: fopen /var/run/nut/upsd.pid: No such
file or directory
Oct 12 22:28:22 melissa upsd[938]: not listening on 2001:470:8:809::1005
port 3493
Oct 12 22:28:22 melissa upsd[938]: listening on ::1 port 3493
Oct 12 22:28:22 melissa upsd[938]: listening on 127.0.0.1 port 3493
Oct 12 22:28:22 melissa upsd[938]: no listening interface available
Oct 12 22:28:22 melissa upsd[938]: Network UPS Tools upsd 2.6.5
Oct 12 22:28:22 melissa upsd[938]: not listening on 2001:470:8:809::1005
port 3493
Oct 12 22:28:22 melissa upsd[938]: listening on ::1 port 3493
Oct 12 22:28:22 melissa upsd[938]: listening on 127.0.0.1 port 3493
Oct 12 22:28:22 melissa upsd[938]: no listening interface available
That is the correct IP6 address - it just hasn't been initialized yet.
When booting is complete, I start it up manually with "systemd start
nut-server.service":
Oct 12 22:29:01 melissa upsdrvctl[1655]: Network UPS Tools - UPS driver
controller 2.6.5
Oct 12 22:29:01 melissa bestfortress[1673]: Startup successful
Oct 12 22:29:01 melissa upsd[1674]: fopen /var/run/nut/upsd.pid: No such
file or directory
Oct 12 22:29:01 melissa upsd[1674]: listening on 2001:470:8:809::1005
port 3493
Oct 12 22:29:01 melissa upsd[1674]: listening on ::1 port 3493
Oct 12 22:29:01 melissa upsd[1674]: listening on 127.0.0.1 port 3493
Oct 12 22:29:01 melissa upsd[1674]: Connected to UPS [ups]: bestfortress-ups
Oct 12 22:29:01 melissa upsd[1674]: listening on 2001:470:8:809::1005
port 3493
Oct 12 22:29:01 melissa upsd[1674]: listening on ::1 port 3493
Oct 12 22:29:01 melissa upsd[1674]: listening on 127.0.0.1 port 3493
Oct 12 22:29:01 melissa upsd[1674]: Connected to UPS [ups]: bestfortress-ups
Oct 12 22:29:01 melissa upsd[1675]: Startup successful
Putting the systemd start in /etc/rc.d/rc.local is still too soon. It
takes a few seconds for dhclient -6 to pick up the IP address. I am
able to work around it with this in rc.local:
at now + 1 min <<EOF
systemctl start nut-server.service
EOF
More information about the Nut-upsdev
mailing list