openupsmartd(5)
NAME
/etc/openupsmart.conf - configuration file for openups
martd
DESCRIPTION
The file /etc/openupsmart.conf contains defaults for the
program openupsmartd(1) Each option takes the form option
= value. Double quotes are allowed around string values.
Comment lines must start with a pound sign (#).
The valid configuration options are:
- ups_device
- The device file to be used to communicate with the
UPS. Defaults to /dev/ttyS0 - no_fork
- Fork into the background. Can be y/n. Defaults to
y. - write_log
- Log output. Can be y/n. Defaults to y. use_sys log Use syslog for output. Can be y/n. Defaults to n.
- log_file
- Path to log file. Defaults to /var/log/openups_ mart.log.
- log_level
- Level of log output. 0 is minimal, 1 is maximum
- poll_time
- Time between polling the UPS in seconds. Defaults
to 2 - shutdown_retries
- Number of poll_time s to wait before running shut_ down_command when mains power fails. By default, shutdown_command will be run when the UPS indicates a low battery.
- shutdown_command
- Command to be run when attempting to shut down.
- restore_command
- Command to be run if power is restored once shut_
down_command starts (if possible). - sigpwr_shutdown_time
- Time, in minutes, to wait before turning off power
when SIGPWR is received. Set to 0 to ignore. - sigpwr_restore_time
- Time, in minutes, to wait before restoring power
after shutdown by SIGPWR