blob: 0c9027331c6ea29e06aa51ee565b3e380fe7cfc4 [file] [log] [blame]
#
# Configuration file for Laptop Mode Tools module configuration-file-control.
#
# For more information, consult the laptop-mode.conf(8) manual page.
#
###############################################################################
# Configuration file control
# --------------------------
#
# Laptop mode tools can automatically swap out configuration files depending on
# the power state of your system.
#
# The primary use for this feature is for controlling the configuration files
# of syslog daemons. Syslog daemons have a tendency to sync their log files when
# entries are written to them. This causes disks to spin up, which is not very
# nice when you're trying to save power. The syslog.conf can be tweaked to *not*
# sync a given file, by prepending the log file name with a dash, like this:
#
# mail.* -/var/log/mail/mail.log
#
# Using the following options, you can let laptop mode switch between
# different configurations depending on whether you are working on
# battery or on AC power.
#
#
# IMPORTANT NOTE
# --------------
#
# This feature will NOT work if CONTROL_SYSLOG_CONF is set in laptop-mode.conf.
# To start using this feature, remove the CONTROL_SYSLOG_CONF section in
# laptop-mode.conf, and then restart the laptop-mode-tools service.
#
# Note that the new config files will have different names than the old ones,
# and that settings are NOT migrated. You will have to do this manually.
#
###############################################################################
# Enable debug mode for this module
# Set to 1 if you want to debug this module
DEBUG=0
#
# Should laptop mode tools control which configuration files should be used?
#
CONTROL_CONFIG_FILES=0
#
# Specify the configuration files that you want to control, as a space-separated
# list.
#
# The specific configuration files will be named as follows:
#
# <config file>-nolm-ac
# <config file>-lm-ac
# <config file>-batt
#
# The first file will be used when the system is on AC power and laptop mode
# is not active. The second file will be used when the system is on AC power and
# laptop mode is active. The third file will be used when the system is on
# battery power.
#
# When the laptop mode tools service is enabled, it will replace the
# configuration files with a symlink to one of the three state-based
# configuration files. The original configuration file will be saved as
# <config file>.lmbackup, and it will be restored when the laptop mode tools
# service is disabled.
#
# When you add files to this list, make sure to also add the appropriate
# programs and services to the configuration settings below.
#
# You can create the alternate configuration files yourself. If you don't, they
# will be created by laptop mode tools the next time it is restarted. To force
# the files to be created, run the laptop mode tools init script with the
# "restart" parameter.
#
CONFIG_FILES="/etc/syslog.conf /etc/syslog-ng/syslog-ng.conf /etc/rsyslog.conf"
#
# Signal these programs and reload these services when configuration files hav
# been replaced.
#
# Programs in CONFIG_FILE_SIGNAL_PROGRAMS receive the SIGHUP signal after
# configuration files have been replaced. All common syslog daemons interpret
# this as an instruction to reload their config files, it may work for other
# daemons as well but your mileage may vary.
#
# For services listed in CONFIG_FILE_RELOAD_SERVICES, laptop mode tools will
# call the init script with the "reload" parameter after configuration files
# have been replaced.
#
CONFIG_FILE_SIGNAL_PROGRAMS="syslogd syslog-ng rsyslogd"
CONFIG_FILE_RELOAD_SERVICES=""