Skip to content

RFE: Allow NUT for Windows daemons to customize the pipe name for private signaling #3375

@jimklimov

Description

@jimklimov

Some NUT daemons have a way to send signals (e.g. upsd -c reload contacting a running copy), with Windows builds using calls like pipe_create(UPSD_PIPE_NAME); to set up a named pipe. That name is hard-coded (via common.h like #define UPSMON_PIPE_NAME TEXT("upsmon"), where TEXT is variably defined in /usr/include/w32api/winnt.h) for each daemon, so no more than one instance can be running on the same system.

This issue proposes to make the name configurable via upsd.conf and upsmon.conf (as the two currently impacted daemons; drivers already use custom-named pipes), with current values being just a default. Note that scripts/Windows/wininit.c (nut.exe service manager) would also need to parse that, to communicate with daemon instances that it launched.

Loosely related to #3370 (that idea would probably also need configurable pipe/socket names, for different platforms).

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions