[ClusterLabs] changing pacemaker.log location
cwh at eml.cc
Fri Aug 12 11:19:35 EDT 2016
I'm surprised I'm having such a hard time figuring this out on my own.
I'm running pacemaker 1.1.13 and corosync-2.3.4 and want to change the
location of pacemaker.log.
By default it is located in /var/log.
I looked in corosync.c and found the following lines:
get_config_opt(config, local_handle, KEY_PREFIX "to_logfile",
get_config_opt(config, local_handle, KEY_PREFIX "logfile",
I can't find any other documentation.
Here is my corosync.conf file.
# Need a cluster name for now:
# Log the source file and line where messages are being
# generated. When in doubt, leave off. Potentially useful for
# Log to standard error. When in doubt, set to no. Useful when
# running in the foreground (when invoking 'corosync -f')
# Log to a log file. When set to 'no', the 'logfile' option
# must not be set.
# Log to the system log daemon. When in doubt, set to yes.
# Log debug messages (very verbose). When in doubt, leave off.
# Log messages with time stamps. When in doubt, set to on
# (unless you are only logging to syslog, where double
# timestamps can be annoying).
More information about the Users