Skip to content

upsd PID check and config loading in wrong order #693

@Thermi

Description

@Thermi

upsd version 2.7.4

Please order the check correctly. Right now, the STATEPATH in upsd.conf doesn't influence the checking of the PID file, although it should. The default path is /var/state/nut/, which is a permanent, not a volatile directory, so the PID file persists between reboots, if nut is shutdown unclean.

See

nut/server/upsd.c

Line 1220 in 241848c

if (sendsignalfn(pidfn, 0) == 0) {

vs

nut/server/upsd.c

Line 1253 in 241848c

load_upsdconf(0); /* 0 = initial */

Metadata

Metadata

Assignees

No one assigned

    Labels

    impacts-release-2.7.4Issues reported against NUT release 2.7.4 (maybe vanilla or with minor packaging tweaks)service/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