These should be done using features provided by the operating system.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Sat May 12 09:13:28 CEST 2018 on sn-devel-144
# CTDB_MANAGES_WINBIND=yes
# CTDB_MANAGES_NFS=yes
-# Raise the file descriptor limit for CTDB?
-# CTDB_MAX_OPEN_FILES=10000
-
# Default is to use the log file below instead of syslog.
# CTDB_LOGGING=file:/var/log/log.ctdb
export_debug_variables
- # Explicitly trying to disable core files, no other way
- # shellcheck disable=SC2039
- if [ "$CTDB_SUPPRESS_COREFILE" = "yes" ]; then
- ulimit -c 0
- else
- ulimit -c unlimited
- fi
-
- # Unsupported option easily avoided by not using configuration variable
- # shellcheck disable=SC2039
- if [ -n "$CTDB_MAX_OPEN_FILES" ]; then
- ulimit -n "$CTDB_MAX_OPEN_FILES"
- fi
-
eval "$ctdbd" "$ctdb_options" || return 1
# Wait until ctdbd has started and is ready to respond to clients.
</listitem>
</varlistentry>
- <varlistentry>
- <term>CTDB_MAX_OPEN_FILES=<parameter>NUM</parameter></term>
- <listitem>
- <para>
- NUM is the maximum number of open files.
- </para>
- <para>
- There is no default.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>CTDB_NOSETSCHED=yes|no</term>
<listitem>
</listitem>
</varlistentry>
- <varlistentry>
- <term>CTDB_SUPPRESS_COREFILE=yes|no</term>
- <listitem>
- <para>
- Whether CTDB core files should be suppressed.
- </para>
- <para>
- Default is no.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>CTDB_TRANSPORT=tcp|infiniband</term>
<listitem>