Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 424448 Details for
Bug 529568
net-fs/nfs-utils - /etc/init.d/nfs should not "need rpc.statd" with a pure NFSv4 client/server system
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make rpc.statd optional
nfs-otional-statd.patch (text/plain), 2.28 KB, created by
Roland Hopferwieser
on 2016-02-02 09:46:49 UTC
(
hide
)
Description:
Patch to make rpc.statd optional
Filename:
MIME Type:
Creator:
Roland Hopferwieser
Created:
2016-02-02 09:46:49 UTC
Size:
2.28 KB
patch
obsolete
>--- /usr/portage/net-fs/nfs-utils/files/nfs.confd 2015-08-09 22:34:52.000000000 +0200 >+++ /etc/conf.d/nfs 2016-02-02 10:36:39.447152376 +0100 >@@ -3,8 +3,17 @@ > # If you wish to set the port numbers for lockd, > # please see /etc/sysctl.conf > >+# If you do not set values for the NEED_ options, they will be attempted >+# autodetected; this should be sufficient for most people. Valid alternatives >+# for the NEED_ options are "yes" and "no". >+ >+# Do you want to start the statd daemon? It is not needed for NFSv4. >+NEED_STATD=no >+ >+# Do you want to start the idmapd daemon? It is only needed for NFSv4. >+NEED_IDMAPD=yes >+ > # Optional services to include in default `/etc/init.d/nfs start` >-# For NFSv4 users, you'll want to add "rpc.idmapd" here. > NFS_NEEDED_SERVICES="" > > # Options to pass to rpc.nfsd >--- /usr/portage/net-fs/nfs-utils/files/nfs.initd 2015-08-09 22:34:52.000000000 +0200 >+++ /etc/init.d/nfs 2016-02-02 10:41:46.994274123 +0100 >@@ -1,7 +1,7 @@ > #!/sbin/runscript > # Copyright 1999-2014 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Id$ >+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.28 2014/06/20 06:21:22 vapier Exp $ > > extra_started_commands="reload" > >@@ -15,6 +15,22 @@ > nfsd=/usr/sbin/rpc.nfsd > smnotify=/usr/sbin/sm-notify > >+ >+case "$NEED_STATD" in >+ yes|no) >+ ;; >+ *) >+ NEED_STATD=yes >+ ;; >+esac >+case "$NEED_IDMAPD" in >+ yes|no) >+ ;; >+ *) >+ NEED_IDMAPD=yes >+ ;; >+esac >+ > depend() { > local myneed="" > # XXX: no way to detect NFSv4 is desired and so need rpc.idmapd >@@ -28,8 +44,14 @@ > } > }' /etc/exports /etc/exports.d/*.exports 2>/dev/null > )" >+ if [ "$NEED_STATD" = yes ]; then >+ NFS_NEEDED_SERVICES="$NFS_NEEDED_SERVICES rpc.statd" >+ fi >+ if [ "$NEED_IDMAPD" = yes ]; then >+ NFS_NEEDED_SERVICES="$NFS_NEEDED_SERVICES rpc.idmapd" >+ fi > config /etc/exports /etc/exports.d/*.exports >- need portmap rpc.statd ${myneed} ${NFS_NEEDED_SERVICES} >+ need portmap ${NFS_NEEDED_SERVICES} ${myneed} > use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd > after quota > } >@@ -99,7 +121,9 @@ > local ret=0 > start_it mountd ${mountd} ${OPTS_RPC_MOUNTD} > start_it daemon ${nfsd} ${OPTS_RPC_NFSD} >+ if [ "$NEED_STATD" = yes ]; then > [ -x "${smnotify}" ] && start_it smnotify ${smnotify} ${OPTS_SMNOTIFY} >+ fi > return ${ret} > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 529568
: 424448