root@OPNsense:/var/db # /usr/local/etc/rc.d/nut restartnut not running? (check /var/db/nut/upsd.pid).Network UPS Tools - UPS driver controller 2.8.0Network UPS Tools - Generic HID driver 0.47 (2.8.0)USB communication driver (libusb 1.0) 0.43Can't chdir to /var/db/nut: Permission deniedDriver failed to start (exit status=1)/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
root@OPNsense:/var/db # ls -la nut/total 19drwxr-x--- 2 uucp uucp 6 Jan 19 04:44 .drwxr-xr-x 23 root wheel 34 Jan 27 10:23 ..-rw-r--r-- 1 nut nut 6 Jan 18 10:00 upsd.pid-rw-r--r-- 1 nut nut 6 Jan 27 10:23 upsmon.pidsrw-rw---- 1 nut nut 0 Jan 18 10:00 usbhid-ups-ups-rw-r--r-- 1 nut nut 6 Jan 18 10:00 usbhid-ups-ups.pid
Does this do the job? https://github.com/opnsense/plugins/commit/16cbe99ebf# opnsense-patch -c plugins 16cbe99ebf
root@*****:/usr/local/opnsense # ls -al /var/db/nut/total 8drwxr-x--- 2 uucp uucp 512 Jan 27 08:45 .drwxr-xr-x 21 root wheel 1536 Jan 27 03:40 ..
root@*****:/usr/local/opnsense # ls -al /var/db/nut/total 20drwxr-x--- 2 nut nut 512 Jan 27 08:45 .drwxr-xr-x 21 root wheel 1536 Jan 27 03:40 ..-rw-r--r-- 1 nut nut 6 Jan 27 08:45 upsd.pid-rw-r--r-- 1 root nut 6 Jan 27 08:45 upsmon.pidsrw-rw---- 1 nut nut 0 Jan 27 08:45 usbhid-ups-DP-rw-r--r-- 1 nut nut 6 Jan 27 08:45 usbhid-ups-DP.pid
uucp:*:66:dialer:*:68:network:*:69:
uucp:*:66:dialer:*:68:nutnetwork:*:69:
Does this do the job? https://github.com/opnsense/plugins/commit/16cbe99ebf# opnsense-patch -c plugins 16cbe99ebfCheers,Franco