This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

21 December 2007 Heartbeat release 2.1.3 is now out Download it and install it!

11 October 2007 NEW educational HA/DR Blog hosted by Alan Robertson

9 April 2007 Check out the Cool Heartbeat Screencasts: Installation, Intro to the GUI Part of the Heartbeat Education project

Last site update:
2008-05-17 12:37:54

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

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

use_logd <on/off>

(Note: use_logd can be any HeartbeatBoolean value)

The detailed policy is:

1. if there is any entry for debugfile/logfile/logfacility in ha.cf

  • a) if use_logd is not set, logging daemon will not be used

    b) if use_logd is set to on, logging daemon will be used

    c) if use_logd is set to off, logging daemon will not be used

2. if there is no entry for debugfile/logfile/logfacility in ha.cf

  • a) if use_logd is not set, logging daemon will be used

    b) if use_logd is set to on, logging daemon will be used

    c) if use_logd is set to off, config error, i.e. you can not turn off all logging options

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/debugfile/logfacility 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.