I think yes, per code and docs it seems this is more about a unique
filename than specific directory used. Generally you might have many copies
of each, running as different unprivileged users, so one default size would
not fit all and so was deemed better not guess/default and make mistakes on
behalf of user.
Maybe it can be made more comfortable that if just a filename is set, use
common var-state dir or fail if rights are not right.
Jim
On Mon, Aug 8, 2022, 11:10 Roger Price <roger at rogerprice.org> wrote:
> I'm looking at a Debian 11 box with upsd 2.7.4, but no upsmon running.
The
> sockets for communication between upsd and the drivers are automatically
> declared in /var/run/nut :
>
> root at titan ~ ls -alF /var/run/nut
> drwxrwx--- 2 root nut 140 Aug 7 15:57 ./
> drwxr-xr-x 30 root root 880 Aug 7 16:01 ../
> srw-rw---- 1 nut nut 0 Aug 7 15:57 dummy-ups-heartbeat>
-rw-r--r-- 1 nut nut 5 Aug 7 15:57 dummy-ups-heartbeat.pid
> -rw-r--r-- 1 nut nut 5 Aug 7 15:57 upsd.pid
> srw-rw---- 1 nut nut 0 Aug 7 15:57 usbhid-ups-Eaton>
-rw-r--r-- 1 nut nut 4 Aug 7 15:57 usbhid-ups-Eaton.pid
>
> The attachment daemon upsd runs correctly with a custom management daemon.
> Shutdown and restart are ok. So why do I have to declare PIPEFN for the
> socket
> used between upsmon and upssched? Why can't NUT automatically use the
> same
> directory as used for upsd?
>
> Roger
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20220819/0ef36c26/attachment.htm>