How about using the fix suggested by in Debian Bug # 645880 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645880) ? Simply start rpcbind without the '-w' option if neither of the relevant xdr files exist.
I've modified the patch from the above Debian bug for compatibility with Upstart:
--- /etc/init/portmap.conf (0.2.0-7ubuntu1) 2012-05-23 11:06:40.755992557 +1200 +++ /etc/init/portmap.conf 2012-05-23 11:43:56.813215443 +1200 @@ -24,11 +24,15 @@ pre-start exec mkdir -p /run/rpcbind
script - OPTIONS="-w" + OPTIONS="" if [ -f /etc/default/rpcbind ]; then . /etc/default/rpcbind elif [ -f /etc/rpcbind.conf ]; then . /etc/rpcbind.conf fi + if [ -e /run/rpcbind/portmap.xdr ] || \ + [ -e /run/rpcbind/rpcbind.xdr ] ; then + OPTIONS="$OPTIONS -w" + fi exec rpcbind $OPTIONS end script
How about using the fix suggested by in Debian Bug # 645880 (http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 645880) ?
Simply start rpcbind without the '-w' option if neither of the relevant xdr files exist.
I've modified the patch from the above Debian bug for compatibility with Upstart:
--- /etc/init/ portmap. conf (0.2.0-7ubuntu1) 2012-05-23 11:06:40.755992557 +1200 portmap. conf 2012-05-23 11:43:56.813215443 +1200
+++ /etc/init/
@@ -24,11 +24,15 @@
pre-start exec mkdir -p /run/rpcbind
script rpcbind ]; then rpcbind portmap. xdr ] || \ rpcbind. xdr ] ; then
- OPTIONS="-w"
+ OPTIONS=""
if [ -f /etc/default/
. /etc/default/
elif [ -f /etc/rpcbind.conf ]; then
. /etc/rpcbind.conf
fi
+ if [ -e /run/rpcbind/
+ [ -e /run/rpcbind/
+ OPTIONS="$OPTIONS -w"
+ fi
exec rpcbind $OPTIONS
end script