Il fallait faire:
# systemctl enable --now nut.target
Created symlink /etc/systemd/system/multi-user.target.wants/nut.target → /usr/lib/systemd/system/nut.target.
#
Après redémarrage, j’obtiens ceci:
# systemctl status nut*
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown c>
Loaded: loaded (/usr/lib/systemd/system/nut-monitor.service; enabled; pres>
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: active (running) since Wed 2023-11-15 21:07:20 CET; 11min ago
Process: 1374 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpf>
Main PID: 1376 (upsmon)
Tasks: 2 (limit: 18865)
Memory: 1.4M
CPU: 32ms
CGroup: /system.slice/nut-monitor.service
├─1376 /usr/sbin/upsmon -F
└─1379 /usr/sbin/upsmon -F
nov. 15 21:07:20 fedora.home systemd[1]: Starting nut-monitor.service - Network>
nov. 15 21:07:20 fedora.home systemd[1]: Started nut-monitor.service - Network >
nov. 15 21:07:20 fedora.home nut-monitor[1376]: fopen /run/nut/upsmon.pid: No s>
nov. 15 21:07:20 fedora.home nut-monitor[1376]: Could not find PID file to see >
nov. 15 21:07:20 fedora.home nut-monitor[1376]: UPS: eaton3s@localhost (primary>
nov. 15 21:07:20 fedora.home nut-monitor[1376]: Using power down flag file /etc>
nov. 15 21:07:20 fedora.home nut-monitor[1379]: Login on UPS [eaton3s@localhost>
● nut-driver - Network UPS Tools - device driver for NUT device>
lines 1-23...skipping...
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown c>
Loaded: loaded (/usr/lib/systemd/system/nut-monitor.service; enabled; pres>
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: active (running) since Wed 2023-11-15 21:07:20 CET; 11min ago
Process: 1374 ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpf>
Main PID: 1376 (upsmon)
Tasks: 2 (limit: 18865)
Memory: 1.4M
CPU: 32ms
CGroup: /system.slice/nut-monitor.service
├─1376 /usr/sbin/upsmon -F
└─1379 /usr/sbin/upsmon -F
nov. 15 21:07:20 fedora.home systemd[1]: Starting nut-monitor.service - Network>
nov. 15 21:07:20 fedora.home systemd[1]: Started nut-monitor.service - Network >
nov. 15 21:07:20 fedora.home nut-monitor[1376]: fopen /run/nut/upsmon.pid: No s>
nov. 15 21:07:20 fedora.home nut-monitor[1376]: Could not find PID file to see >
nov. 15 21:07:20 fedora.home nut-monitor[1376]: UPS: eaton3s@localhost (primary>
nov. 15 21:07:20 fedora.home nut-monitor[1376]: Using power down flag file /etc>
nov. 15 21:07:20 fedora.home nut-monitor[1379]: Login on UPS [eaton3s@localhost>
Je reviendrai pour affiner…
Bonne nuit à tous.
pll