This is working to remove both warnings. I'm 99% sure the real problem is that upsmon is trying to do things that are now systemd's job. You can see the "kill" log even there which suggests upsmon remains derp.
# Trying to fix these warnings: # nut-monitor.service: Can't open PID file /run/nut/upsmon.pid (yet?) after start: Operation not permitted # nut-monitor.service: Supervising process 1287240 which is not our child. We'll most likely not notice when it exits. [Service] RuntimeDirectory=nut # Because /run/nut is shared by several nut units, # do not erase it when THIS one ends. # This might not be necessary, but # I cannot easily tell, because # I only run nut-monitor on this host! RuntimeDirectoryPreserve=true # Sigh, because upsmon starts as root then drops privs, # it still fails to write to root:root /run/nut? # Start upsmon as root:nut and make /run/nut root:nut. # Maybe that will be enough to make thus STFU? Group=nut # <damjan> twb just remove PIDFile= PIDFile= cyber@light:~$ systemctl status nut-monitor ● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/nut-monitor.service.d └─override.conf Active: active (running) since Wed 2021-12-22 13:56:11 AEDT; 6min ago Process: 1303859 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS) Main PID: 1303860 (upsmon) Tasks: 2 (limit: 4653) Memory: 896.0K CPU: 17ms CGroup: /system.slice/nut-monitor.service ├─1303860 /lib/nut/upsmon └─1303861 /lib/nut/upsmon Dec 22 13:56:11 light systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller... Dec 22 13:56:11 light upsmon[1303859]: kill: No such process Dec 22 13:56:11 light upsmon[1303859]: UPS: up...@omega.cyber.com.au (slave) (power value 1) Dec 22 13:56:11 light upsmon[1303859]: Using power down flag file /etc/killpower Dec 22 13:56:11 light upsmon[1303860]: Startup successful Dec 22 13:56:11 light systemd[1]: Started Network UPS Tools - power device monitor and shutdown controller. Dec 22 13:56:11 light upsmon[1303861]: Init SSL without certificate database