/usr/lib/nfs-ganesha-config.sh is in nfs-ganesha 2.6.0-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh
#
# Extract configuration from /etc/sysconfig/ganesha and
# copy or generate new environment variables to
# /run/sysconfig/ganesha to be used by nfs-ganesha service
#
CONFIGFILE=/etc/sysconfig/ganesha
RUNCONFIG=/run/sysconfig/ganesha
if [ ! -e $(command dirname ${CONFIGFILE} 2>/dev/null) ]; then
# Debian/Ubuntu
CONFIGFILE=/etc/ganesha/nfs-ganesha
RUNCONFIG=/etc/default/nfs-ganesha
fi
if [ -r ${CONFIGFILE} ]; then
. ${CONFIGFILE}
[ -x ${EPOCH_EXEC} ] && EPOCHVALUE=`${EPOCH_EXEC}`
mkdir -p $(command dirname ${RUNCONFIG} 2>/dev/null)
{
cat ${CONFIGFILE}
[ -n "${EPOCHVALUE}" ] && echo EPOCH=\"-E $EPOCHVALUE\"
# Set NUMA options if numactl is present
NUMACTL=$(command -v numactl 2>/dev/null)
if [ -n "${NUMACTL}" ]; then
echo NUMACTL=${NUMACTL}
echo NUMAOPTS=--interleave=all
fi
} > ${RUNCONFIG}
fi
|