[Nut-upsuser] Simplest way to fully Disable NUT without uninstalling

Jim Klimov jimklimov+nut at gmail.com
Thu Nov 28 21:14:07 GMT 2024


If the distro packaging follows vanilla NUT reference units, disabling
`nut.target` alone should suffice.

Otherwise, NDE-made units for drivers are likely tripped by a same-named
timer unit that re-runs NDE and spawns missing drivers (though disable/mask
also for each `nut-driver at upsname.service` should preclude them starting by
timer or other ways).

Hope this helps,
Jim Klimov


On Thu, Nov 28, 2024, 20:12 <nut-upsuser at kosowsky.org> wrote:

> I would like to keep NUT installed but disable it completely at times.
> I tried both 'disabling' and 'masking' all the following 'systemctl
> services
>     nut-server
>         nut-monitor
>         nut-client
>         ups-monitor
>         nut-driver-enumerator
> as follows:
>    systemctl disable nut-server nut-monitor nut-client ups-monitor
> nut-driver-enumerator
>    systemctl mask nut-server nut-monitor nut-client ups-monitor
> nut-driver-enumerator
>
> But I still have 2 '/sbin/upsdrvctl' processes that are respawned
> periodically:
> Specifically:
>     root      123446  0.1  0.2   2320  1280 ?        Ss   11:27   0:00
> /bin/sh -c NUTDEV="`/usr/libexec/nut-driver-enumerator.sh
> --get-device-for-service APC_RS900`" && [ -n "$NUTDEV" ] || { echo "FATAL:
> Could not find a NUT device section for service unit APC_RS900" >&2 ; exit
> 1 ; } ; /sbin/upsdrvctl start "$NUTDEV"
>     root      123473  0.0  0.3   2220  1408 ?        S    11:27   0:00
> /sbin/upsdrvctl start APC_RS900
>
> These processes respawn every few minutes and clutter my syslog with error
> messages.
>
> So, what do I need to do to fully disable NUT?
> And what are the minimum services I need to disable to make this take
> effect...
>
> I am running Bookworm/Debian 12 on a RPI5.
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20241128/7ff8eca1/attachment.htm>


More information about the Nut-upsuser mailing list