Comment 24 for bug 835833

Revision history for this message
jth (jth) wrote : Re: spurious syslog error because of use of -w on boot [rpcbind.xdr / portmap.xdr : errno 2 (no such file)]

Hi
I also have to dissagree with Steve Langasek (vorlon). If you use a command wrongly I do not see why it should supress the errormessages. Please apply the patch or this modified version after you have tested it.

I would like it as a default option and not to override or add to the custom options.
I have not tested it yet, but it should be something like this:

--- /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"
+ if [ -e /run/rpcbind/portmap.xdr ] || \
+ [ -e /run/rpcbind/rpcbind.xdr ] ; then
+ OPTIONS="-w"
+ fi

        if [ -f /etc/default/rpcbind ]; then
                . /etc/default/rpcbind
        elif [ -f /etc/rpcbind.conf ]; then
                . /etc/rpcbind.conf
        fi
        exec rpcbind $OPTIONS
 end script

Please apply some patch, it has gone almost a year now since first report and that is not so great I think. Thank you.