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:
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: