ulimit -n "$CTDB_MAX_OPEN_FILES"
fi
- if [ -n "$CTDB_VALGRIND" -a "$CTDB_VALGRIND" != "no" ] ; then
- if [ "$CTDB_VALGRIND" = "yes" ] ; then
- ctdbd="valgrind -q --log-file=/usr/local/var/log/ctdb_valgrind ${ctdbd}"
- else
- ctdbd="${CTDB_VALGRIND} ${ctdbd}"
- fi
- ctdb_options="${ctdb_options} --valgrinding"
- fi
-
case "$CTDB_LOGGING" in
syslog:udp|syslog:udp-rfc5424)
logger -t ctdbd "CTDB is being run with ${CTDB_LOGGING}. If nothing is logged then check your syslogd configuration"
</listitem>
</varlistentry>
- <varlistentry>
- <term>CTDB_VALGRIND=yes|no|<parameter>COMMAND</parameter></term>
- <listitem>
- <para>
- If "yes", this causes
- <citerefentry><refentrytitle>ctdbd</refentrytitle>
- <manvolnum>1</manvolnum></citerefentry> to be run under
- <citerefentry><refentrytitle>valgrind</refentrytitle>
- <manvolnum>1</manvolnum></citerefentry> with logs going to
- <filename>/usr/local/var/log/ctdb_valgrind</filename>. If neither
- "yes" nor "no" then the value is assumed to be a COMMAND
- (e.g. a <command>valgrind</command> variation, a
- <citerefentry><refentrytitle>gdb</refentrytitle>
- <manvolnum>1</manvolnum></citerefentry> command) that is
- used in place of the default <command>valgrind</command>
- command. In either case, the <option>--valgrind</option>
- option is passed to <command>ctdbd</command>.
- </para>
- <para>
- Default is no.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>CTDB_VARDIR=<parameter>DIRECTORY</parameter></term>
<listitem>