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 - [email protected] - http://people.debian.org/~adejong --

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to