-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2021-04-16 a las 20:25 +0100, Dave Howorth escribió:
On Fri, 16 Apr 2021 14:08:17 +0200 (CEST) Roger Price
wrote: On Fri, 16 Apr 2021, Carlos E. R. wrote:
Didn't somebody say earlier that nut-monitor also had to be started, just like nut-driver? Presumably once enabled and started they'll restart after boot.
Yes, they both need starting. The server first.
So there should be an After or a Before dependency somewhere in the service files?
Correct, the nut-server.service file "wants" nut-driver.service. cer@Telcontar:~> systemctl cat nut-server.service # /usr/lib/systemd/system/nut-server.service [Unit] Description=Network UPS Tools - power devices information server After=local-fs.target network.target nut-driver.service # We don't Require drivers to be successfully started! This would be # a change of behavior compared to init SysV, and could prevent from # accessing successfully started, at least to audit a system. Wants=nut-driver.service <========== Before=nut-monitor.service <---------- [Service] ExecStart=/usr/sbin/upsd Type=forking [Install] WantedBy=multi-user.target cer@Telcontar:~> cer@Telcontar:~> systemctl cat nut-monitor.service # /usr/lib/systemd/system/nut-monitor.service [Unit] Description=Network UPS Tools - power device monitor and shutdown controller After=local-fs.target network.target nut-server.service [Service] ExecStart=/usr/sbin/upsmon PIDFile=/var/run/upsmon.pid Type=forking [Install] WantedBy=multi-user.target cer@Telcontar:~> cer@Telcontar:~> systemctl cat nut-driver.service # /usr/lib/systemd/system/nut-driver.service [Unit] Description=Network UPS Tools - power device driver controller After=local-fs.target network.target StopWhenUnneeded=yes [Service] ExecStart=/usr/sbin/upsdrvctl start ExecStop=/usr/sbin/upsdrvctl stop Type=forking cer@Telcontar:~> - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYHnnHhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVL+0Ani2KQrlTIr7BfgSYpXyh pd7EmJVcAJ9MruAAfu1xyU3gioHt/xEH5GU25A== =D8QZ -----END PGP SIGNATURE-----