+nfs-utils (1:1.2.6-4) UNRELEASED; urgency=low
+
+ * Use rpcbind's rpcinfo everywhere (Closes: #707589).
+
+ -- Luk Claes <luk@zomers.be> Fri, 10 May 2013 09:08:08 +0200
+
nfs-utils (1:1.2.6-3) unstable; urgency=low
* Iterate through exports.d to look for expors (Closes: #676604).
# Read config
DEFAULTFILE=/etc/default/nfs-common
-PREFIX=
NEED_STATD=
NEED_IDMAPD=
NEED_GSSD=
. /lib/lsb/init-functions
# Exit if required binaries are missing.
-[ -x $PREFIX/sbin/rpc.statd ] || exit 0
+[ -x /sbin/rpc.statd ] || exit 0
#
# Parse the fstab file, and determine whether we need idmapd and gssd. (The
fi
start-stop-daemon --start --oknodo --quiet \
--pidfile /var/run/rpc.statd.pid \
- --exec $PREFIX/sbin/rpc.statd -- $STATDOPTS
+ --exec /sbin/rpc.statd -- $STATDOPTS
RET=$?
if [ $RET != 0 ]; then
log_end_msg $RET
log_progress_msg "nfsd"
# See if rpcbind is running
- /usr/sbin/rpcinfo -p >/dev/null 2>&1
+ $PREFIX/sbin/rpcinfo -p >/dev/null 2>&1
RET=$?
if [ $RET != 0 ]; then
echo
}
fi
- $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
+ $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
[ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel