From: Martin Schwenke Date: Mon, 5 Mar 2018 10:26:07 +0000 (+1100) Subject: ctdb-scripts: Drop CTDB_PIDFILE configuration option X-Git-Tag: talloc-2.1.12~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ee7b8a6697d67d35af6d8fad10abb882bc1c121;p=thirdparty%2Fsamba.git ctdb-scripts: Drop CTDB_PIDFILE configuration option Use environment variables for test-only options. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/ctdb.init b/ctdb/config/ctdb.init index e55c4e68add..dcb32e46ead 100755 --- a/ctdb/config/ctdb.init +++ b/ctdb/config/ctdb.init @@ -54,7 +54,7 @@ export CTDB_INIT_STYLE ctdbd="${CTDBD:-/usr/sbin/ctdbd}" ctdbd_wrapper="${CTDBD_WRAPPER:-/usr/sbin/ctdbd_wrapper}" -pidfile="${CTDB_PIDFILE:-/var/run/ctdb/ctdbd.pid}" +pidfile="/var/run/ctdb/ctdbd.pid" ############################################################ diff --git a/ctdb/config/ctdbd_wrapper b/ctdb/config/ctdbd_wrapper index d56fbef7bc6..0e3c7aa62e5 100755 --- a/ctdb/config/ctdbd_wrapper +++ b/ctdb/config/ctdbd_wrapper @@ -94,7 +94,6 @@ build_ctdb_options () maybe_set "--reclock" "$CTDB_RECOVERY_LOCK" # build up ctdb_options variable from optional parameters - maybe_set "--pidfile" "$CTDB_PIDFILE" maybe_set "--logging" "$CTDB_LOGGING" maybe_set "--nlist" "$CTDB_NODES" maybe_set "--socket" "$CTDB_SOCKET" diff --git a/ctdb/doc/ctdbd.conf.5.xml b/ctdb/doc/ctdbd.conf.5.xml index 4c013f073cb..eb1dfd56dbc 100644 --- a/ctdb/doc/ctdbd.conf.5.xml +++ b/ctdb/doc/ctdbd.conf.5.xml @@ -50,41 +50,6 @@ - - - INITSCRIPT CONFIGURATION - - - - Some options must be available to the initscript so they need to - be set in the distribution-specific initscript configuration, - such as /etc/sysconfig/ctdb or - /etc/default/ctdb. - - - - - - CTDB_PIDFILE=FILENAME - - - FILENAME is the name of the file used to contain the - process ID (PID) of the main CTDB daemon when it is - running. This is passed from the initscript to - ctdbd_wrapper - 1. - - - - Default is /usr/local/var/run/ctdb/ctdbd.pid. - Corresponds to . - - - - - - - GLOBAL CONFIGURATION