Add these lines to /etc/init.d/rpcbind

The init script checks if the directory is there but not the files, so
just add the checks:

...

start ()
{
    if [ ! -d $STATEDIR ] ; then
        mkdir -p $STATEDIR
    fi
    if [ ! -O $STATEDIR ] ; then
        log_begin_msg "$STATEDIR not owned by root"
        log_end_msg 1
        exit 1
    fi
#ADD THESE LINES
    if [ ! -f $STATEDIR/rpcbind.xdr ]
    then
        touch $STATEDIR/rpcbind.xdr
    fi
    if [ ! -f $STATEDIR/portmap.xdr ]
    then
        touch $STATEDIR/portmap.xdr
    fi
#END
    log_begin_msg "Starting rpcbind daemon..."
    pid=$( pidofproc /sbin/rpcbind )
    if [ -n "$pid" ]
    then
...

--
Steven Hudson
[email protected]



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to