~ubuntu-branches/debian/stretch/nfs-utils/stretch

« back to all changes in this revision

Viewing changes to debian/nfs-kernel-server.init

  • Committer: Bazaar Package Importer
  • Author(s): Luk Claes, Luk Claes, Ben Hutchings
  • Date: 2011-06-18 10:48:28 UTC
  • Revision ID: james.westby@ubuntu.com-20110618104828-2cm50epe42bn0udc
Tags: 1:1.2.3-3
[ Luk Claes ]
* Remove build dependency on librpcsecgss-dev as it's superseded by
  libtirpc-dev
* Remove very old versioned dependencies on netbase and libblkid1
* Exclude state files from dh_md5sum
* Use rpcinfo instead of /dev/tcp redirection
* Fix CVE-2011-1749: Anticipate RLIMIT_FSIZE (Closes: #629420)
* start-statd: Use bash (Closes: #621027)
* Add build-arch and build-indep makefile targets to debian/rules
* Add override for setuid mount.nfs

[ Ben Hutchings ]
* statd.man, nfsiostat.man: Fix syntax errors, thanks to Simon Paillard
  (Closes: #624261)
* exports.man: Fix syntax errors
* nfs.man: Fix syntax errors and improve tabulation

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
                log_daemon_msg "Starting $DESC"
84
84
                log_progress_msg "nfsd"
85
85
                
86
 
                # See if portmap or rpcbind are running
87
 
                (cat </dev/null >/dev/tcp/localhost/111) 2>/dev/null
 
86
                # See if rpcbind is running
 
87
                /usr/sbin/rpcinfo -p >/dev/null 2>&1
88
88
                RET=$?
89
89
                if [ $RET != 0 ]; then
90
90
                    echo
91
 
                    log_warning_msg "Not starting: portmap daemon is not running"
 
91
                    log_warning_msg "Not starting: portmapper is not running"
92
92
                    exit 0
93
93
                fi
94
94