<html><head></head><body><div dir="auto">Look in the startup logs and see where itnis starting. I'm not at a RH system at the moment, but at work, I have had to do this, so can look there,mor perhaps put Nut on the test RH8 VM I spun up for other rrasons on Friday and work out the syntax. Not sure if the systemd file you are using came in the RPM or not, but if it did, it's almost a crime that this critical detail was overlooked.</div><br><br><div class="gmail_quote"><div dir="auto">On July 28, 2024 5:33:25 PM EDT, Bill Gee <bgee@campercaver.net> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><div dir="auto">No luck.  I modified both /usr/lib/systemd/system/nut.target and /usr/lib/systemd/nut-server.target  The behavior did not change.<br><br>Looking at it a bit more, I noticed a comment in /usr/lib/systemd/system/nut-server.service to the effect that the network does not need to be running - merely present - when nut starts. If a running network is wanted, then a new file needs to be added.<br><br>I created /etc/systemd/system/nut-server.service.d/network.conf with these three lines:<br><br>[Unit]<br>Requires=network-online.target<br>After=network-online.target<br><br>I ran "systemctl daemon-reload" and rebooted.  Still no luck. nut-server did not start during the boot.  It starts with no problems when run from a command line:<hr>[root@mythtv ~]# systemctl status nut-server<br>○ nut-server.service - Network UPS Tools - power devices information server<br>     Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)<br>    Drop-In: /usr/lib/systemd/system/service.d<br>             └─10-timeout-abort.conf<br>             /etc/systemd/system/nut-server.service.d<br>             └─environ.conf, network.conf<br>     Active: inactive (dead)<br>[root@mythtv ~]# systemctl start nut-server<br>[root@mythtv ~]# systemctl status nut-server<br>● nut-server.service - Network UPS Tools - power devices information server<br>     Loaded: loaded (/usr/lib/systemd/system/nut-server.service; enabled; preset: disabled)<br>    Drop-In: /usr/lib/systemd/system/service.d<br>             └─10-timeout-abort.conf<br>             /etc/systemd/system/nut-server.service.d<br>             └─environ.conf, network.conf<br>     Active: active (running) since Sun 2024-07-28 16:26:42 CDT; 2s ago<br>    Process: 1703 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf (code=ex><br>    Process: 1706 ExecStartPost=/bin/grep -E Units|Max open files /proc/${MAINPID}/limits (code=exited, status=0/SUCCES><br>   Main PID: 1705 (upsd)<br>      Tasks: 1 (limit: 9460)<br>     Memory: 944.0K (peak: 2.9M)<br>        CPU: 27ms<br>     CGroup: /system.slice/nut-server.service<br>             └─1705 /usr/sbin/upsd -F<hr>Bill Gee<br><br>On 7/28/24 13:53, Tim Dawson wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><div dir="auto">Wants=network.target network-online.target<br>After=network.target network-online.target<br><br>Seems to be the case on RedHat8, and other RedHat based distros should match.<br><br><br>On July 28, 2024 1:56:49 PM EDT, Bill Gee <bgee@campercaver.net> wrote:<br><br>    These files came from the distro package. I did not change anything<br>    myself. Systemd newbie here ...<br><br>    So the detailed question is - Exactly what change is needed to add<br>    the network-target dependency? I suspect it is not enough to simply<br>    remove the comment symbol on those two lines.<hr>    Bill Gee<br><br>    On 7/28/24 10:10, Tim Dawson wrote:<br><br>        Seems like you would also want the "network-target" dependency,<br>        since nut will likelynfail without networking being up. (This<br>        would also explwin why the sysctl start ... works after boot,<br>        but not during . . .<br><br><br>        On July 28, 2024 10:37:15 AM EDT, Bill Gee<br>        <bgee@campercaver.net> wrote:<br><br>        I have also been having this problem. Checking a few of the files<br></div></blockquote><div dir="auto"><hr>Nut-upsuser mailing list<br>Nut-upsuser@alioth-lists.debian.net<br><a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br></div></pre></blockquote></div><div dir="auto"><div class='k9mail-signature'>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</div></div></body></html>