Hi,

Here is a patch,

===================================================================
RCS file: /etc/init.d/RCS/rpcbind,v
retrieving revision 1.1
diff -b -d -p -t -u -r1.1 /etc/init.d/rpcbind
--- /etc/init.d/rpcbind 2011-11-10 10:33:54-05  1.1
+++ /etc/init.d/rpcbind 2011-11-10 10:49:03-05
@@ -20,7 +20,6 @@ test -f /sbin/rpcbind || exit 0
 
 . /lib/lsb/init-functions
 
-OPTIONS="-w"
 STATEDIR=/var/run/rpcbind
 if [ -f /etc/default/rpcbind ]
 then
@@ -34,6 +33,12 @@ start ()
 {
     if [ ! -d $STATEDIR ] ; then
         mkdir $STATEDIR
+    else
+        if [ -e $STATEDIR/portmap.xdr ]  || \
+           [ -e $STATEDIR/rpcbind.xdr ]
+        then
+            set -- -w ${1+"$@"}
+        fi
     fi
     if [ ! -O $STATEDIR ] ; then
         log_begin_msg "$STATEDIR not owned by root"
===================================================================

HTH,
-- 
Jeffrey Sheinberg




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to