Ubuntu server 12.04/rpcbind

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "RPC bind has a little error. Use this patch to fix it: <source lang="text"> 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 +...")
 
m (Replaced content with "RPC bind has a little error. I'll find a fix later")
 
Line 1: Line 1:
RPC bind has a little error. Use this patch to fix it:
+
RPC bind has a little error. I'll find a fix later
<source lang="text">
+
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"
+
</source>
+

Latest revision as of 16:41, 5 May 2012

RPC bind has a little error. I'll find a fix later

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox