From 7c025afd0972e7830d183d961640eea7c826eaab Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 26 Mar 2009 18:31:00 +0100 Subject: [PATCH 01/15] Allow distribution specific PERSISTENT_DB_DIR --- config/ctdb.init | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/config/ctdb.init b/config/ctdb.init index 62346da..bd020d5 100755 --- a/config/ctdb.init +++ b/config/ctdb.init @@ -98,7 +98,14 @@ start() { echo -n $"Starting ctdbd service: " # check all persistent databases that they look ok - PERSISTENT_DB_DIR="/var/ctdb/persistent" + case $init_style in + ubuntu) + PERSISTENT_DB_DIR="/var/lib/ctdb/persistent" + ;; + *) + PERSISTENT_DB_DIR="/var/ctdb/persistent" + ;; + esac [ -z "$CTDB_DBDIR" ] || { PERSISTENT_DB_DIR="$CTDB_DBDIR/persistent" } -- 1.6.2