summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdbd.c
diff options
context:
space:
mode:
authorMathieu PARENT <math.parent@gmail.com>2009-02-04 00:15:57 +0100
committerMichael Adam <obnox@samba.org>2009-02-04 00:19:22 +0100
commitf0d585217e452052da59b68e6e59bfa2df5d3963 (patch)
tree2c52579582b149d866a6b048a3deece5da956b5a /ctdb/server/ctdbd.c
parent62f27d0cb38184d82b2377b86f5e93135f614484 (diff)
downloadsamba-f0d585217e452052da59b68e6e59bfa2df5d3963.tar.gz
samba-f0d585217e452052da59b68e6e59bfa2df5d3963.tar.xz
samba-f0d585217e452052da59b68e6e59bfa2df5d3963.zip
build: Make log-directory configurable indepently of VARDIR
This adds a new configure option "--with-logdir". logdir defaults to "${localstatedir}/log" . It is important to have logdir configurable for debian systems, where localstatedir is set to "/var/lib" and not "/var". Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit b0c6854d1e886456fabdc8f1c3bd21c89311c601)
Diffstat (limited to 'ctdb/server/ctdbd.c')
-rw-r--r--ctdb/server/ctdbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c
index ee433da2eb6..1d3b22aff78 100644
--- a/ctdb/server/ctdbd.c
+++ b/ctdb/server/ctdbd.c
@@ -52,7 +52,7 @@ static struct {
.nlist = ETCDIR "/ctdb/nodes",
.transport = "tcp",
.event_script_dir = ETCDIR "/ctdb/events.d",
- .logfile = VARDIR "/log/log.ctdb",
+ .logfile = LOGDIR "/log.ctdb",
.db_dir = VARDIR "/ctdb",
.db_dir_persistent = VARDIR "/ctdb/persistent",
.script_log_level = DEBUG_ERR,