Ubuntu server 12.04/rpcbind

From Attie's Wiki
Revision as of 16:37, 5 May 2012 by Attie (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RPC bind has a little error. Use this patch to fix it:

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"
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox