In nut-nut-2.0.5-r2 the script has at line 18: rm -f /var/state/nut/upsd.pid Yet at lines 26 & 32: --pidfile /var/lib/nut/upsd.pid So "state" appears to be an error in that first line. Also, /var/lib/nut can end up with pid files specific to the driver, for instance on my system: /var/lib/nut # ls -l total 8 -rw-r--r-- 1 nut nut 6 Oct 8 12:14 cyberpower-ups.pid srw-rw---- 1 nut nut 0 Oct 8 12:14 ups -rw-r--r-- 1 nut nut 6 Oct 8 12:14 upsd.pid So might the proper fix be for line 18 to read: rm -f /var/lib/nut/*.pid ? Reproducible: Always
fixed in cvs.