usage ()
{
- echo "usage: ctdbd_wrapper <pidfile> { start | stop }"
+ echo "usage: ctdbd_wrapper { start | stop }"
exit 1
}
-[ $# -eq 2 ] || usage
+[ $# -eq 1 ] || usage
-pidfile="$1"
-action="$2"
+action="$1"
############################################################
fi
maybe_set "--reclock" "$CTDB_RECOVERY_LOCK"
- maybe_set "--pidfile" "$pidfile"
-
# 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"