<div dir="ltr">For the final part after the build, I'd do this to make sure systemd units get defined, activated and started:<br>
<pre class="gmail-notranslate"><code>:; make -j 4 all && make -j 4 check && \
   { sudo systemctl stop nut-monitor nut-server || true ; } && \
   { sudo systemctl stop nut-driver.service || true ; } && \
   { sudo systemctl stop nut-driver.target || true ; } && \
   { sudo systemctl stop nut.target || true ; } && \
   sudo make install && \
   sudo systemctl daemon-reload && \
   sudo systemd-tmpfiles --create && \
   sudo systemctl disable nut.target nut-driver.target nut-monitor nut-server nut-driver-enumerator.path nut-driver-enumerator.service && \
   sudo systemctl enable  nut.target nut-driver.target nut-monitor nut-server nut-driver-enumerator.path nut-driver-enumerator.service && \
   { sudo systemctl restart udev || true ; } && \
   sudo systemctl restart nut-driver-enumerator.service nut-monitor nut-server</code>

</pre>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 25, 2023 at 1:43 AM gene heskett <<a href="mailto:gheskett@shentel.net">gheskett@shentel.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 4/24/23 17:11, Jim Klimov wrote:<br>
> You mentioned the RPi runs a buster-based OS?<br>
<br>
yup raspios, buster. I'd have moved on but the bullseye python is too <br>
new and linuxcnc can't use it.  The lcnc guys are busy making it work <br>
for bookworm and haven't had time to backport for bullseye. I have a <br>
couple SSD's plugged into the usb3 ports on the pi4b and have the <br>
complete lcnc buildbot available. My whole system is behind an old <br>
buffalo router running dd-wrt, so I'm well insulated from the black hats.<br>
> <br>
> I suppose the simplest way is you can forgo the init-scripts and retain<br>
> just the systemd services (as listed in the article - including the<br>
> nut-driver-enumerator which would create nut-driver@myups.service based in<br>
> the ups.conf section).<br>
> <br>
> Jim<br>
<br>
humm, you can elaborate on that? There are several different sets there <br>
and I must have followed the wrong set.<br>
<br>
Thanks Jim.<br>
<br>
<br>
> <br>
> On Mon, Apr 24, 2023 at 9:03 PM gene heskett <<a href="mailto:gheskett@shentel.net" target="_blank">gheskett@shentel.net</a>> wrote:<br>
> <br>
>> On 4/24/23 14:05, Jim Klimov wrote:<br>
>>> "I'd thought you'd never ask" (C)<br>
>>><br>
>>> Can you give this walkthrough a shot?<br>
>>><br>
>> <a href="https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests</a><br>
>>><br>
>>> Jim<br>
>>><br>
>> I used this section of that link to build the new one:<br>
>> This goes similar to usual build and install from Git:<br>
>><br>
>> :; cd /tmp<br>
>> :; git clone <a href="https://github.com/networkupstools/nut" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut</a><br>
>> :; cd nut<br>
>> :; ./autogen.sh<br>
>> :; ./configure --enable-inplace-runtime # --maybe-some-other-options<br>
>> :; make -j 4 all && make -j 4 check && sudo make install<br>
>><br>
>> configure was very noisy but no show-stoppers<br>
>> Stopped it all before the install, and had to sudo systemctl<br>
>> reload-daemons and now on restart, get<br>
>>    pi@rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/nut-server start<br>
>> [ ok ] Starting nut-server (via systemctl): nut-server.service.<br>
>> pi@rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/nut-client start<br>
>> [ ok ] Starting nut-client (via systemctl): nut-client.service.<br>
>> pi@rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/ups-monitor start<br>
>> pi@rpi4:/media/pi/workspace/nut $ upsc myups<br>
>> Error: Connection failure: Connection refused<br>
>><br>
>> I did a sudo cp -R /etc/nut to /etc/nut-bak so I've got all the old<br>
>> config I hope. Whats next? And thanks Jim.<br>
>> take care & stay well.<br>
>><br>
>> [...]<br>
>><br>
>> Cheers, Gene Heskett.<br>
>> --<br>
>> "There are four boxes to be used in defense of liberty:<br>
>>    soap, ballot, jury, and ammo. Please use in that order."<br>
>> -Ed Howdershelt (Author, 1940)<br>
>> If we desire respect for the law, we must first make the law respectable.<br>
>>    - Louis D. Brandeis<br>
>> Genes Web page <<a href="http://geneslinuxbox.net:6309/" rel="noreferrer" target="_blank">http://geneslinuxbox.net:6309/</a>><br>
>><br>
>><br>
> <br>
<br>
Cheers, Gene Heskett.<br>
-- <br>
"There are four boxes to be used in defense of liberty:<br>
  soap, ballot, jury, and ammo. Please use in that order."<br>
-Ed Howdershelt (Author, 1940)<br>
If we desire respect for the law, we must first make the law respectable.<br>
  - Louis D. Brandeis<br>
Genes Web page <<a href="http://geneslinuxbox.net:6309/" rel="noreferrer" target="_blank">http://geneslinuxbox.net:6309/</a>><br>
<br>
</blockquote></div>