[Pkg-sysvinit-devel] Bug#620788: mountnfs: rpcbind not started before nfs-common

Arthur de Jong adejong at debian.org
Sat Apr 16 15:04:12 UTC 2011


On Mon, 2011-04-04 at 08:20 +0000, Jamie Heilman wrote: 
> But rpcbind, an alternative portmap implementation, won't get started
> prior to nfs-common, and thus nfs mounts will fail.  This could be
> fixed with:
> 
>         if [ "$start_nfs" = yes ] && [ -x /etc/init.d/nfs-common ]
>         then
>             if [ -x /etc/init.d/portmap ]
>             then
>                 /etc/init.d/portmap start
>                 /etc/init.d/nfs-common start
>             elif [ -x /etc/init.d/rpcbind ]
>             then
>                 /etc/init.d/rpcbind start
>                 /etc/init.d/nfs-common start
>             fi 
>         fi

Perhaps this is better because /etc/init.d/portmap can be left behind if
it isn't purged (this is also shorter):

        if [ "$start_nfs" = yes ] && [ -x /etc/init.d/nfs-common ]
        then
            [ -x /etc/init.d/portmap ] && /etc/init.d/portmap start
            [ -x /etc/init.d/rpcbind ] && /etc/init.d/rpcbind start
            /etc/init.d/nfs-common start
        fi

I've tested this and it works correctly on my system. A slightly nicer
solution would be to put something in /etc/init.d/nfs-common.

-- 
-- arthur - adejong at debian.org - http://people.debian.org/~adejong --

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110416/cd7a8893/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list