nfs-utils/nfs-lock.preconfig
Steve Dickson 67ebcf9f55 - Converted init scrips to systemd services. (bz 699040)
- Made nfsnobody's uid/gid to always be a 16-bit value of -2

Signed-off-by: Steve Dickson <steved@redhat.com>
2011-08-03 06:09:46 -04:00

18 lines
431 B
Bash

#!/bin/sh
. /etc/sysconfig/nfs
# Make sure lockd is loaded
/sbin/modprobe -q lockd $LOCKDARG
# See if the kernel lockd should start up
# listening on a particular port
#
if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then
[ -n "$LOCKD_TCPPORT" ] && \
/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
[ -n "$LOCKD_UDPPORT" ] && \
/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
fi