I’ve been trying to install NUT on my Turris so I can move the UPS control to the router and ensure that it remains active and can report battery status on power failure, previously I was achieving similar on a server using apcupsd.
I’ve followed a couple of guides on this none have been successful. I think the issue resides in the config file creation.
I’ve used this as a guide Setting up a UPS for a home lab | Assorted Nerdery and also installed the luci-app-nut package and I can see all the parameters I have edited in nano within Luci and I can edit them in luci. This writes to the config files based in /etc/config
When NUT tries to run on boot it is unable to access /etc/nut/nut.conf and other associated config files.
It appears these are symlinks to a file that should exist in /var/etc/nut/…
Am I missing a step, should these files be auto created on install and updated by something?
TurrisOS 6.4.4, Turris Omnia
-----------------------------------------------------
root@TurrisOmnia:~# ls /etc/nut/ -ahl
drwxr-xr-x 1 root root 92 Jan 16 09:15 .
drwxr-xr-x 1 root root 2.8K Mar 31 2023 ..
lrwxrwxrwx 1 root root 21 Jan 16 09:15 nut.conf -> /var/etc/nut/nut.conf
lrwxrwxrwx 1 root root 26 Jan 16 09:15 ups.conf -> ../../var/etc/nut/ups.conf
lrwxrwxrwx 1 root root 27 Jan 16 09:15 upsd.conf -> ../../var/etc/nut/upsd.conf
lrwxrwxrwx 1 root root 28 Jan 16 09:15 upsd.users -> ../../var/etc/nut/upsd.users
lrwxrwxrwx 1 root root 24 Jan 16 09:15 upsmon.conf -> /var/etc/nut/upsmon.conf
root@TurrisOmnia:~#
root@TurrisOmnia:~# ls /var/etc/ -ahl
drwxr-xr-x 2 root root 160 Jan 16 09:36 .
drwxrwxrwt 27 root root 880 Jan 16 09:50 ..
-rw-r--r-- 1 root root 1.0K Jan 16 09:35 collectd.conf
-rw-r--r-- 1 root root 3.5K Jan 16 09:36 dnsmasq.conf.cfg01411c
-rw-r--r-- 1 root root 328 Jan 16 09:35 fosquitto.generated.conf
-rw------- 1 root root 490 Jan 16 09:36 openvpn-server_turris.conf
-rw-r--r-- 1 root root 86 Jan 16 09:36 sentinel-proxy.cfg
-rw-r--r-- 1 root root 6.0K Jan 16 09:36 smb.conf
root@TurrisOmnia:~#