Comment 7 for bug 835833

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

This "error" started for me after upgrading from ubuntu 11.04 to 11.10.

My solution suggestion since this error is harmless:

Add two lines to the "start|stop)" part in /etc/init.d/rpcbind-boot so it will look like this:

start|stop)
    $ECHO
    $ECHO "Since the script you are attempting to invoke has been converted to an"
    $ECHO "Upstart job, you may also use the $COMMAND(8) utility, e.g. $COMMAND $JOB"
    if status "$JOB" 2>/dev/null | grep -q ' start/'; then
        RUNNING=1
    fi
    if [ -z "$RUNNING" ] && [ "$COMMAND" = "stop" ]; then
        exit 0
    elif [ -n "$RUNNING" ] && [ "$COMMAND" = "start" ]; then
        exit 0
    fi
    if [ ! -f /var/run/rpcbind/rpcbind.xdr ]; then touch /var/run/rpcbind/rpcbind.xdr; fi
    if [ ! -f /var/run/rpcbind/portmap.xdr ]; then touch /var/run/rpcbind/portmap.xdr; fi
    $COMMAND "$JOB"
    ;;