From c315741380515fe31cbf34960208420efe443069 Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Wed, 16 Mar 2011 20:55:23 +0100 Subject: [PATCH] Replace lsof usage with redirection to /dev/tcp --- debian/control | 4 ++-- debian/nfs-common.init | 2 +- debian/nfs-kernel-server.init | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 0d076da..5f24bcd 100644 --- a/debian/control +++ b/debian/control @@ -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~) diff --git a/debian/nfs-common.init b/debian/nfs-common.init index d69eb34..92ea10d 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -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/tcp/localhost/111 RET=$? if [ $RET != 0 ]; then echo diff --git a/debian/nfs-kernel-server.init b/debian/nfs-kernel-server.init index b7a9633..298e3b4 100644 --- a/debian/nfs-kernel-server.init +++ b/debian/nfs-kernel-server.init @@ -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/tcp/localhost/111 RET=$? if [ $RET != 0 ]; then echo -- 2.39.2