Skip to content

Add a '-n no-conf' option to upsdrvctl / upsd / upsmon to avoid failure when not yet configured #156

@aquette

Description

@aquette

nut.conf was in charge of telling init sysV script if NUT was to be started, and which component(s).
With newer init system, such as systemd, nut.conf is useless and all installed components are tried to be started. This results in failures, at least at initial installation.
By adding a '-f force-no-conf' option, we avoid returrning EXIT_FAILURE if no device in configured in ups.conf nor in upsmon.conf.
We may also consider broadening the scope to all configuration.
i.e., if no configuration file is found, don't EXIT_FAILURE.
However, note that other errors are not covered.
@bigon , @clepple : any comment?

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    packagingportabilityWe want NUT to build and run everywhere possibleservice/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debugsystemd

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions