initscript: The wrapper script should export CTDB_SOCKET
authorMartin Schwenke <martin@meltin.net>
Fri, 26 Jul 2013 01:20:47 +0000 (11:20 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 29 Jul 2013 05:58:51 +0000 (15:58 +1000)
This ensures that any invocation of the ctdb tool (within the wrapper)
gets the desired value.  This at least ensures that ctdbd will be
started.

If a non-standard value is set for CTDB_SOCKET then command-line users
will still need the variable in their environment.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

config/ctdbd_wrapper

index 33bef06ccfb0c8dc2ffe96b9477c2075b1b6e37b..fbc76cf78f62d265943e504a6ccc1a0f2fd92385 100755 (executable)
@@ -20,6 +20,8 @@ action="$2"
 . "${CTDB_BASE}/functions"
 loadconfig "ctdb"
 
+export CTDB_SOCKET
+
 ctdbd="${CTDBD:-/usr/sbin/ctdbd}"
 
 ############################################################