Introduce sysconfig variable CTDB_SYSLOG=yes/no (default "no").
authorMichael Adam <obnox@samba.org>
Fri, 28 Aug 2009 11:01:27 +0000 (13:01 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Sep 2009 07:52:14 +0000 (09:52 +0200)
This allows for controlling start of ctdbd with or without the option "--syslog"
from the sysconfig/ctdb file.

Michael

config/ctdb.init
config/ctdb.sysconfig

index 554649bc1d96a3f75b688e70dcf5c5a1b4cb55f2..9b965a900d9eea84ed8a85c0d70d485af5440305 100755 (executable)
@@ -103,6 +103,7 @@ build_ctdb_options () {
     maybe_set "--no-lmaster"             "$CTDB_CAPABILITY_LMASTER"   "no"
     maybe_set "--lvs --single-public-ip" "$CTDB_LVS_PUBLIC_IP"
     maybe_set "--script-log-level"       "$CTDB_SCRIPT_LOG_LEVEL"
+    maybe_set "--syslog"                 "$CTDB_SYSLOG"               "yes"
 }
 
 check_persistent_databases () {
index 004ada32c22c6263ffa415cda68f22728a7425a7..ca2b63fad157e99fc8c27690cd8a8b86bac0acf9 100644 (file)
@@ -187,6 +187,10 @@ CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"
 # the default is ERR
 CTDB_DEBUGLEVEL=ERR
 
+# Write debug messages to syslog instead of logfile?
+# The default is not to use syslog.
+# CTDB_SYSLOG=no
+
 # set any default tuning options for ctdb
 # use CTDB_SET_XXXX=value where XXXX is the name of the tuning
 # variable