<div dir="ltr"><div dir="ltr"></div><div dir="ltr">>
I was looking at a technique which allows systemd to "Run any Executable as Systemd Service in Linux"...</div><div><br></div><div>Well, as a sort of hot-fix, you could edit `/usr/lib/systemd/system/nut-monitor.service` to replace ExecStart from a direct command call to a shell snippet, something like:</div><div><br></div><div>-ExecStart=/usr/local/ups/sbin/upsmon -F</div><div>
<div>+ExecStart=/bin/sh -c '/usr/local/ups/sbin/upsmon -F | grep -v "Network UPS Tools upsmon 2.8.1"'</div><div><br></div><div>NOTE: If here you would be editing the file directly, it would be likely overwritten by eventual package upgrade - but then it would hopefully be with a more recent NUT.</div><div><br></div><div>Hm, or a minor packaging patch.</div><div><br></div><div>Then maybe a site-local "drop-in" override would be better:</div><div><br></div><div>:; mkdir -p /etc/systemd/system/nut-monitor.service.d</div><div>:; cat > /etc/systemd/system/nut-monitor.service.d/filter.conf << 'EOF'</div><div>[Service]</div><div>
ExecStart=</div><div>
ExecStart=/bin/sh -c '/usr/local/ups/sbin/upsmon -F | grep -vE "Network UPS Tools .* 2\.8\.[012]"'</div><div>EOF</div><div>:; systemctl daemon-reload</div><div>
<div>:; systemctl restart nut-monitor</div><div><br></div><div>BEWARE: This is based on my local build that went into under /usr/local/ups/ - the packaged path to upsmon in your case would likely differ.</div><div><br></div>Hope this helps,</div><div>Jim Klimov</div><div><br></div>
<br></div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Nov 29, 2025 at 3:04 PM Roger Price <<a href="mailto:roger@rogerprice.org">roger@rogerprice.org</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 Sat, 29 Nov 2025, Greg Troxel wrote:<br>
<br>
> Debian not having the latest release is a Debian bug<br>
<br>
Hello Greg, Agreed !<br>
<br>
> I suggest installing the latest. Surely there's some reasonable away to<br>
> do that by taking the control files and moving them forward and<br>
> building, or taking a package from unstable, or ?<br>
<br>
My UPS's are Eaton ECO 1600 which are well supported by NUT 2.8.1 so I have less <br>
motivation to move to the latest release.<br>
<br>
I was looking at a technique which allows systemd to "Run any Executable as <br>
Systemd Service in Linux". I'm thinking of a very simple executable which would <br>
run grep -v <banner> on messages before they get to the journal and journalctl. <br>
It's based on a suggestion by Abhinand [1].<br>
<br>
Roger<br>
<br>
[1] <a href="https://abhinand05.medium.com/run-any-executable-as-systemd-service-in-linux-21298674f66f" rel="noreferrer" target="_blank">https://abhinand05.medium.com/run-any-executable-as-systemd-service-in-linux-21298674f66f</a>_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div></div>