]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Replace lsof usage with redirection to /dev/tcp
authorLuk Claes <luk@debian.org>
Wed, 16 Mar 2011 19:55:23 +0000 (20:55 +0100)
committerLuk Claes <luk@debian.org>
Wed, 16 Mar 2011 19:55:23 +0000 (20:55 +0100)
debian/control
debian/nfs-common.init
debian/nfs-kernel-server.init

index 0d076da68e527bb849c459e1bf92eb60fdc9db7c..5f24bcd1f1e952f5cc41e3ae2e98b6fc7c3a9d2b 100644 (file)
@@ -12,7 +12,7 @@ Vcs-Browser: http://git.debian.org/?p=kernel/nfs-utils.git
 Package: nfs-kernel-server
 Priority: optional
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, nfs-common (= ${binary:Version}), ucf, lsb-base (>= 1.3-9ubuntu3), libblkid1 (>= 1.39+1.40-WIP-2006.11.14+dfsg-2), lsof
+Depends: ${shlibs:Depends}, ${misc:Depends}, nfs-common (= ${binary:Version}), ucf, lsb-base (>= 1.3-9ubuntu3), libblkid1 (>= 1.39+1.40-WIP-2006.11.14+dfsg-2)
 Provides: knfs, nfs-server
 Conflicts: knfs, nfs-server
 Replaces: knfs, nfs-server
@@ -32,7 +32,7 @@ Homepage: http://nfs.sourceforge.net/
 
 Package: nfs-common
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, rpcbind | portmap, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), initscripts (>= 2.86.ds1-38.1), lsof
+Depends: ${shlibs:Depends}, ${misc:Depends}, rpcbind | portmap, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), initscripts (>= 2.86.ds1-38.1)
 Provides: nfs-client
 Conflicts: nfs-client
 Replaces: nfs-client, nfs-kernel-server (<< 1:1.0.7-5), mount (<< 2.13~)
index d69eb34a9f3c410e5f6154f9936172a8d714319f..92ea10d8b8eee1657616ceee39c1fde11892234c 100644 (file)
@@ -138,7 +138,7 @@ case "$1" in
            log_progress_msg "statd"
            
            # See if portmap or rpcbind are running
-           lsof -i :111 >/dev/null
+           cat </dev/null >/dev/tcp/localhost/111
            RET=$?
            if [ $RET != 0 ]; then
                echo
index b7a9633151a0a79332dcf41b222c6a5f7ba11fea..298e3b45ef4184bbe557a93c83a72773d75e5d03 100644 (file)
@@ -84,7 +84,7 @@ case "$1" in
                log_progress_msg "nfsd"
                
                # See if portmap or rpcbind are running
-               lsof -i :111 >/dev/null
+               cat </dev/null >/dev/tcp/localhost/111
                RET=$?
                if [ $RET != 0 ]; then
                    echo