Package: nut-client Version: 2.7.4-12 Severity: important Dear Maintainer,
I have two systems connected to a single UPS. The first system running both nut-server and nut-client packages works fine. The second system running only nut-client experiences this problem. Systemd can't sucessfully start the nut-monitor.service. The reason is that the /run/nut directory does not exist for upsmon to write its pid file. Even though upsmon starts and connects to the remote server, systemd eventually kills it becuase the pid file never gets written. The undesirable work around is to install the nut-server package so that something run by it creates /run/nut before upsmon is run. This also results in systemd attempting and failing to start the nut-driver service. The nut-server service is started but it benignly succeeds without starting upsd becaue MODE is set to netclient in /etc/nut/nut.conf. The nut-driver service failure causes systemd to that the system is in a degraded state because the unnecessary nut-driver.service failed to start. Ideally, upsmon should create the /run/nut directory if needed so the nut-server package doesn't not need to be installed. Alternatively, the nut-driver service should succeed benignly when not needed in the same way the nut-server service does. David Engel da...@istwok.net *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (900, 'testing'), (100, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.6.0-1-amd64 (SMP w/16 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages nut-client depends on: ii adduser 3.118 ii init-system-helpers 1.57 ii libc6 2.30-8 ii libupsclient4 2.7.4-12 ii lsb-base 11.1.0 Versions of packages nut-client recommends: ii bash-completion 1:2.10-1 Versions of packages nut-client suggests: pn nut-monitor <none> -- Configuration Files: /etc/nut/nut.conf [Errno 13] Permission denied: '/etc/nut/nut.conf' /etc/nut/upsmon.conf [Errno 13] Permission denied: '/etc/nut/upsmon.conf' /etc/nut/upssched.conf [Errno 13] Permission denied: '/etc/nut/upssched.conf' -- no debconf information