2011-01-26 09:35:08 +00:00
|
|
|
NUT.CONF(5)
|
|
|
|
===========
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
NAME
|
|
|
|
----
|
2022-06-29 10:37:36 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
nut.conf - UPS definitions for Network UPS Tools
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
This file attempts to standardize the various files being found
|
|
|
|
in different installations, like /etc/default/nut on Debian based
|
2011-01-26 09:35:08 +00:00
|
|
|
systems and /etc/sysconfig/ups on RedHat based systems.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
Distribution's init script should source this file in order to
|
2011-01-26 09:35:08 +00:00
|
|
|
determine which components have to be started.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
Blank lines are ignored. Lines with a hash ('#') character at the
|
2011-01-26 09:35:08 +00:00
|
|
|
1st position of the line are ignored, too. They can be used to add
|
2010-03-25 23:20:59 +00:00
|
|
|
comments.
|
|
|
|
|
2012-06-01 13:55:19 +00:00
|
|
|
IMPORTANT NOTE
|
|
|
|
--------------
|
|
|
|
|
|
|
|
This file is intended to be sourced by shell scripts.
|
|
|
|
You MUST NOT use spaces around the equal sign!
|
|
|
|
|
|
|
|
Refer to the EXAMPLE section for illustrations.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
DIRECTIVES
|
|
|
|
----------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*MODE*::
|
|
|
|
Required. Recognized values are 'none', 'standalone', 'netserver' and
|
|
|
|
'netclient'. Defaults to 'none'.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
none;; Indicates that NUT should not get started automatically,
|
2010-03-25 23:20:59 +00:00
|
|
|
possibly because it is not configured or that an Integrated Power
|
|
|
|
Management or some external system, is used to startup the NUT
|
|
|
|
components.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
standalone;; Addresses a local only configuration, with 1 UPS
|
2010-03-25 23:20:59 +00:00
|
|
|
protecting the local system. This implies to start the 3 NUT
|
|
|
|
layers (driver, upsd and upsmon), with the related configuration
|
|
|
|
files. This mode can also address UPS redundancy.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
netserver;; Like the standalone configuration, but also possibly
|
|
|
|
need one or more specific LISTEN directive(s) in upsd.conf.
|
2010-03-25 23:20:59 +00:00
|
|
|
Since this MODE is open to the network, a special care should be
|
|
|
|
applied to security concerns.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
netclient;; When only upsmon is required, possibly because
|
2010-03-25 23:20:59 +00:00
|
|
|
there are other hosts that are more closely attached to the UPS,
|
|
|
|
the MODE should be set to netclient.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*UPSD_OPTIONS*::
|
|
|
|
Optional. Set upsd specific options. See linkman:upsd[8] for more
|
|
|
|
details. It is ignored when 'MODE' above indicates that no upsd
|
2010-03-25 23:20:59 +00:00
|
|
|
should be running.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*UPSMON_OPTIONS*::
|
|
|
|
Optional. Set upsmon specific options. See linkman:upsmon[8] for
|
|
|
|
more details. It is ignored when 'MODE' above indicates that no
|
2010-03-25 23:20:59 +00:00
|
|
|
upsmon should be running.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
*POWEROFF_WAIT*::
|
2022-06-29 10:37:36 +00:00
|
|
|
Optional. At the end of an emergency system halt, the upsmon primary
|
2010-03-25 23:20:59 +00:00
|
|
|
will signal the UPS to switch off. This may fail for a number of
|
|
|
|
reasons. Most notably is the case that mains power returns during
|
|
|
|
the shutdown process. See the section "Power races" in
|
2015-04-30 13:53:36 +00:00
|
|
|
/usr/share/doc/nut/FAQ.txt.gz. The system will wait this
|
2010-03-25 23:20:59 +00:00
|
|
|
long for the UPS to cut power, and then reboot. It should be long
|
|
|
|
enough to exhaust the batteries, in case line power continues to be
|
|
|
|
unavailable. On the other hand, it should not be so long that the
|
|
|
|
system remains offline for an unreasonable amount of time if line
|
2011-01-26 09:35:08 +00:00
|
|
|
power has returned. See sleep(1) for compatible time syntax.
|
2010-03-25 23:20:59 +00:00
|
|
|
If you specify the time in seconds, use the "s" suffix.
|
|
|
|
|
|
|
|
WARNING: this workaround might be dangerous under some circumstances.
|
|
|
|
Please read http://bugs.debian.org/358696 for more details.
|
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
EXAMPLE
|
|
|
|
-------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
------
|
2011-01-26 09:35:08 +00:00
|
|
|
# /etc/nut/nut.conf. See nut.conf(5)
|
|
|
|
|
2012-06-01 13:55:19 +00:00
|
|
|
MODE=none
|
2011-01-26 09:35:08 +00:00
|
|
|
|
2012-06-01 13:55:19 +00:00
|
|
|
UPSD_OPTIONS=""
|
2011-01-26 09:35:08 +00:00
|
|
|
|
2012-06-01 13:55:19 +00:00
|
|
|
UPSMON_OPTIONS=""
|
2011-01-26 09:35:08 +00:00
|
|
|
|
2012-06-01 13:55:19 +00:00
|
|
|
# POWEROFF_WAIT=15m
|
2022-06-29 10:37:36 +00:00
|
|
|
------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
INTEGRATION
|
|
|
|
-----------
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
An init script, such as /etc/init.d/nut, is expected to source this
|
2022-06-29 10:37:36 +00:00
|
|
|
file in order to determine which components have to be started.
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2011-01-26 09:35:08 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
linkman:ups.conf[5], linkman:upsd.conf[5], linkman:upsd.users[5],
|
|
|
|
linkman:upsmon.conf[5]
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
Internet resources:
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2010-03-25 23:20:59 +00:00
|
|
|
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
|