Skip to content

upsd does not honour NUT_STATEPATH envvar if there is a STATEPATH line in upsd.conf #1908

@jimklimov

Description

@jimklimov

Found during a debugging session with configs prepared by NIT, but using a separately exported state path (different from that generated into those configs) for driver socket files.

Generally envvars have precedence over configs and built-in defaults. It was also a discrepancy that the driver did create sockets in NUT_STATEPATH but upsd did not look there (and it took a while to track down where it does look).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions