Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd NUT 2.7.4 #2700
Add NUT 2.7.4 #2700
Conversation
|
So far I've tested only client part |
|
Man page section 8 is used everywhere and we should use 1M instead. |
| file path=usr/share/man/man5/upsmon.conf.5 | ||
| file path=usr/share/man/man5/upssched.conf.5 | ||
|
|
||
| file path=usr/share/man/man8/nut-scanner.8 |
This comment has been minimized.
This comment has been minimized.
xen0l
Dec 29, 2016
Contributor
8 -> 1M, also manpages might need patching to reference to 1M instead of 8.
| file build/$(MACH32)/scripts/avahi/nut.service path=$(NUT_AVAHI_SERVICE_SAMPLE) | ||
|
|
||
| # TODO pedantic: split this off to depend on logrotate package? | ||
| file scripts/logrotate/nutlogd path=etc/logrotate.d/nutlogd preserve=renamenew |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
pyhalov
Dec 29, 2016
Author
Contributor
We don't need it or logadm entry, as nut daemons logs messages to daemon facility,. and these logs go to /var/adm/messages.
|
I'm sure it's almost ready now. "Almost" - because I couldn't make it work with snmp ups (couldn't get snmp data on test host from this ups at all ). |
|
Going commit-by-commit:
|
|
|
Re 2) Does Re 4) Other OSes like debian do in fact have splitting of packages per driver family - much for the reasons outlined above, e.g. :
Re 5) the case in question may have been a sporadically triggered deficiency in asciidoc or related tools, maybe fixed since the comment was made in the docs. So if it works reliably without the band-aid - fine :) Re 7) while many clients do integrate via CLI (calling |
|
:kill does a SIGTERM . If this times out, I suppose service goes to maintenance mode. As for killing UPS power, I wouldn't do it (at least in my case), as, for example, there could be devices, which can't use NUT, on the same UPS. And, for example, I'd prefer switches to live as long as possible in case of UPS powerdown. It could be too site-specific, I'm not sure how to properly implement powerdown logic. I don't see anything similar in Debian init scripts, for example. |
|
Yes, it is site-specific just like the set of drivers needed to connect to a specific UPS on site, or indeed the strategy of shutdown (shut down ups-monitoring servers early and safely, or late, or never and do a power-race avoidance sleep instead; kill the monitored power devices - whole or per outlet or outlet group if supported; etc.) Support for the killpower flag is configurable (IIRC defaults to on for "upsmon master" and off for "upsmon slave" systems which do not have direct managerial connection to the UPS... or just defaults to off unless admin configures otherwise). |
|
I looked at sources - the The stopping of client, server and drivers does not enforce any power or OS shutdowns by itself. However, while the client is running and if so configured, it can trigger the OS shutdown (or any other reaction to power events), and it can touch the flag file which can be taken into account by OS shutdown routine. Which is site-dependent, though there are several stable patterns that can be pre-delivered so admins do not have to code and invent the same wheel from scratch every time. |
|
Just to remember the highlights of PR discussion in IRC: the code state is good enough for a first merge and can be amended with later PRs (and some maybe eventually introduced in the scope of upstream NUT), such as:
|
|
Also note that there is upstream NUT development for support of service instances for each driver. So far I (and colleagues before me) implemented it for systemd as was needed for a customized project at work, and now it is in PR-limbo for general review at upstream NUT - but there are hooks for SMF that I intend to finish some day. Current code state can be seen an networkupstools/nut#330 - and when that branch lands (with the SMF bits completed), the NUT git head (and later release) will have better integration with Solaris 10+ OSes out of the box. I guess I can post the manifests and method-scripts for the server and client instances made in this branch to the upstream NUT too - better than nothing - and then simplify customization needs in userland recipes ;) |
pyhalov commentedDec 26, 2016
No description provided.