libtirpc-dev
* Remove very old versioned dependencies on netbase and libblkid1
* Exclude state files from dh_md5sum
+ * Use rpcinfo instead of /dev/tcp redirection
- -- Luk Claes <luk@debian.org> Mon, 11 Apr 2011 18:06:40 +0200
+ -- Luk Claes <luk@debian.org> Wed, 13 Apr 2011 22:54:50 +0200
nfs-utils (1:1.2.3-2) unstable; urgency=low
if [ "$NEED_STATD" = yes ]; then
log_progress_msg "statd"
- # See if portmap or rpcbind are running
- (cat </dev/null >/dev/tcp/localhost/111) 2>/dev/null
+ # See if rpcbind is running
+ rpcinfo -p >/dev/null 2>&1
RET=$?
if [ $RET != 0 ]; then
echo
- log_warning_msg "Not starting: portmap daemon is not running"
+ log_warning_msg "Not starting: portmapper is not running"
exit 0
fi
log_daemon_msg "Starting $DESC"
log_progress_msg "nfsd"
- # See if portmap or rpcbind are running
- (cat </dev/null >/dev/tcp/localhost/111) 2>/dev/null
+ # See if rpcbind is running
+ rpcinfo -p >/dev/null 2>&1
RET=$?
if [ $RET != 0 ]; then
echo
- log_warning_msg "Not starting: portmap daemon is not running"
+ log_warning_msg "Not starting: portmapper is not running"
exit 0
fi