The Samba-Bugzilla – Bug 6232
Bug use not default Socket file
Last modified: 2016-08-10 09:07:23 UTC
all script where used call to 'cdtb' not work if set CTDB_SOCKET in config
sed -e "s:ctdb :ctdb --socket=\$CTDB_SOCKET :g" -i /etc/ctdb/*
echo " alias ctdb=\"ctdb --socket=\$CTDB_SOCKET\"" >> ~/.bashrc
I guess this was fixed with commit e11b6d (in version 1.0.85)?
Fixed long ago. These days ctdbd_wrapper exports CTDB_SOCKET if it is set, so all calls to the ctdb tool will get it via an environment variable.
That said, the compile-time location of the socket is now sensible. Changing it is not recommended, except in a test environment where you want to run multiple daemons on a single machine.