-
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upsd.conf: document race with LISTEN on specific interfaces #393
Comments
I wonder if there is a possibility for a single solution to rule them all? We can have:
Is there some one systemd unit that wraps such networking use-cases for But other than that, we can indeed pre-package the unit file with several commented-away variants of the setup and document the issue and when/how to tune it. As an implementation detail, we can follow suggestions posted by @peterhoeg in PR #330 - using the "drop-in configuration fragments without changing the unit file" which might be friendlier to packaging and more visible to local system administration. The question of dependency on plug'n'play networking hardware may be related to udev on Linux, so also referencing PR #377 as something we may want to consider (in pre-set configs or at least note in documentation). |
@jimklimov , you typically have 2 network targets:
The former should be a safe bet, as all the network interfaces present at boot would be visible although they may not be configured yet. How does |
@peterhoeg the answer to your last question may be complicated by a logic bug (depending on whether the interface is the first in the configuration file), but the intent was to fail fast if the configuration did not match the interfaces at the time that |
In upsd.conf, use LISTEN 0.0.0.0 3493 instead of anything else and the issue "goes away". The first link that @clepple posted explains why and what should be done in the last section. |
If a
LISTEN
option is encountered inupsd.conf
before the interface is fully configured,upsd
may fail to start. Tagged systemd because it seems that other init systems tend to wait until the interfaces are all configured before starting NUT.See also #392.
The text was updated successfully, but these errors were encountered: