Linux-HA Logo

use_logd - the directive to determine whether heartbeats use logging daemon or not

The use_logd directive specifies whether Heartbeat[1] logs its messages through logging daemon or not. The syntax is simple:

use_logd <on/off>

(Note: use_logd can be any HeartbeatBoolean[2] value)

The detailed policy is:

1. if there is any entry for debugfile[3]/logfile[4]/logfacility[5] in ha.cf[6]

2. if there is no entry for debugfile[3]/logfile[4]/logfacility[5] in ha.cf[6]

If the logging daemon is used, all log messages will be sent through IPC to the logging daemon, which then writes them into log files. In case the logging daemon dies (for whatever reason), a warning message will be logged and all messages will be written to log files directly.

If the logging daemon is used, logfile[4]/debugfile[3]/logfacility[5] in this file are not meaningful any longer. You should check the config file for logging daemon (the default is /etc/logd.cf).

If use_logd is not used, all log messages will be written to log files directly.

The logging daemon is started/stopped in heartbeat script.

Setting use_logd to "yes" is recommended.


References

[1]http://www.linux-ha.org/HeartbeatProgram
[2]http://www.linux-ha.org/HeartbeatBoolean
[3]http://www.linux-ha.org/ha.cf/DebugfileDirective
[4]http://www.linux-ha.org/ha.cf/LogfileDirective
[5]http://www.linux-ha.org/ha.cf/LogfacilityDirective
[6]http://www.linux-ha.org/ha.cf


This information provided courtesy of the Linux-HA project at http://linux-ha.org/