diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-08 20:34:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-08 20:34:06 +0000 |
commit | a3319f0c8dff03c0fa977598105ab28d5b6edaeb (patch) | |
tree | b6023a9e71b7b481cfba17d41bb2d2c239d57fa2 /net-fs/nfs-utils/files | |
parent | multilib fixes (diff) | |
download | historical-a3319f0c8dff03c0fa977598105ab28d5b6edaeb.tar.gz historical-a3319f0c8dff03c0fa977598105ab28d5b6edaeb.tar.bz2 historical-a3319f0c8dff03c0fa977598105ab28d5b6edaeb.zip |
Add support for starting/stopping gssd daemons #108276 and installing their config files. Also tweak the man-pages SEE ALSO #107991.
Package-Manager: portage-2.0.53_rc4
Diffstat (limited to 'net-fs/nfs-utils/files')
-rw-r--r-- | net-fs/nfs-utils/files/digest-nfs-utils-1.0.7-r2 | 1 | ||||
-rwxr-xr-x | net-fs/nfs-utils/files/nfs | 81 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/nfs-utils-1.0.7-man-pages.patch | 12 | ||||
-rw-r--r-- | net-fs/nfs-utils/files/nfs.confd | 9 |
4 files changed, 84 insertions, 19 deletions
diff --git a/net-fs/nfs-utils/files/digest-nfs-utils-1.0.7-r2 b/net-fs/nfs-utils/files/digest-nfs-utils-1.0.7-r2 new file mode 100644 index 000000000000..0b0ec24d0c0b --- /dev/null +++ b/net-fs/nfs-utils/files/digest-nfs-utils-1.0.7-r2 @@ -0,0 +1 @@ +MD5 8f863120261cd572ad320a9152581e11 nfs-utils-1.0.7.tar.gz 398577 diff --git a/net-fs/nfs-utils/files/nfs b/net-fs/nfs-utils/files/nfs index 489eaec9d7bf..1fafe55f5590 100755 --- a/net-fs/nfs-utils/files/nfs +++ b/net-fs/nfs-utils/files/nfs @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs,v 1.10 2005/03/15 05:43:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs,v 1.11 2005/10/08 20:34:06 vapier Exp $ #--------------------------------------------------------------------------- # This script starts/stops the following @@ -21,11 +21,13 @@ restarting=no # The binary locations exportfs=/usr/sbin/exportfs -statd=/sbin/rpc.statd -idmapd=/usr/sbin/rpc.idmapd -rquotad=/usr/sbin/rpc.rquotad -nfsd=/usr/sbin/rpc.nfsd -mountd=/usr/sbin/rpc.mountd + gssd=/usr/sbin/rpc.gssd + idmapd=/usr/sbin/rpc.idmapd + mountd=/usr/sbin/rpc.mountd + nfsd=/usr/sbin/rpc.nfsd + rquotad=/usr/sbin/rpc.rquotad + statd=/sbin/rpc.statd + svcgssd=/usr/sbin/rpc.svcgssd depend() { use ypbind net @@ -33,9 +35,7 @@ depend() { after quota } -start_idmapd() { - [[ ! -x ${idmapd} ]] && return 0 - +mount_pipefs() { if grep -q rpc_pipefs /proc/filesystems ; then if ! grep -q "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then [[ ! -d /var/lib/nfs/rpc_pipefs ]] && mkdir -p /var/lib/nfs/rpc_pipefs @@ -44,6 +44,54 @@ start_idmapd() { eend $? fi fi +} + +umount_pipefs() { + if [[ ${restarting} == "no" ]] ; then + if grep -q "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then + ebegin "Unmounting RPC pipefs" + umount /var/lib/nfs/rpc_pipefs + eend $? + fi + fi +} + +start_gssd() { + [[ ! -x ${gssd} || ! -x ${svcgssd} ]] && return 0 + local ret1 ret2 + + ebegin "Starting gssd" + ${gssd} ${RPCGSSDDOPTS} + ret1=$? + eend ${ret1} + + ebegin "Starting svcgssd" + ${svcgssd} ${RPCSVCGSSDDOPTS} + ret2=$? + eend ${ret2} + + return $((${ret1} + ${ret2})) +} + +stop_gssd() { + [[ ! -x ${gssd} || ! -x ${svcgssd} ]] && return 0 + local ret + + ebegin "Stopping gssd" + start-stop-daemon --stop --quiet --exec ${gssd} + ret1=$? + eend ${ret1} + + ebegin "Stopping svcgssd" + start-stop-daemon --stop --quiet --exec ${svcgssd} + ret2=$? + eend ${ret2} + + return $((${ret1} + ${ret2})) +} + +start_idmapd() { + [[ ! -x ${idmapd} ]] && return 0 ebegin "Starting idmapd" ${idmapd} ${RPCIDMAPDOPTS} @@ -52,19 +100,14 @@ start_idmapd() { stop_idmapd() { [[ ! -x ${idmapd} ]] && return 0 + local ret ebegin "Stopping idmapd" start-stop-daemon --stop --quiet --exec ${idmapd} ret=$? eend ${ret} - if [[ $restarting == "no" ]] ; then - if grep -q "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then - ebegin "Unmounting RPC pipefs" - umount /var/lib/nfs/rpc_pipefs - eend $? - fi - fi + umount_pipefs return ${ret} } @@ -111,7 +154,9 @@ start() { fi # now that nfsd is mounted inside /proc, we can safely start mountd later + mount_pipefs start_idmapd + start_gssd start_statd # Exportfs likes to hang if networking isn't working. @@ -188,7 +233,11 @@ stop() { fi stop_statd + stop_gssd stop_idmapd + umount_pipefs + + return 0 } reload() { diff --git a/net-fs/nfs-utils/files/nfs-utils-1.0.7-man-pages.patch b/net-fs/nfs-utils/files/nfs-utils-1.0.7-man-pages.patch new file mode 100644 index 000000000000..58836d2e9ebb --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils-1.0.7-man-pages.patch @@ -0,0 +1,12 @@ +http://bugs.gentoo.org/107991 + +--- utils/nfsd/nfsd.man ++++ utils/nfsd/nfsd.man +@@ -38,6 +38,7 @@ + program. + .SH SEE ALSO + .BR rpc.mountd (8), ++.BR exports (5), + .BR exportfs (8), + .BR rpc.rquotad (8), + .BR nfsstat (8). diff --git a/net-fs/nfs-utils/files/nfs.confd b/net-fs/nfs-utils/files/nfs.confd index f72b1d72e564..2d26adc46f94 100644 --- a/net-fs/nfs-utils/files/nfs.confd +++ b/net-fs/nfs-utils/files/nfs.confd @@ -1,7 +1,4 @@ # /etc/conf.d/nfs -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.confd,v 1.9 2005/03/18 07:22:00 vapier Exp $ - -# Config file for /etc/init.d/nfs # If you wish to set the port numbers for lockd, # please see /etc/sysctl.conf @@ -20,5 +17,11 @@ RPCSTATDOPTS="" # Options to pass to rpc.idmapd RPCIDMAPDOPTS="" +# Options to pass to rpc.gssd +RPCGSSDOPTS="" + +# Options to pass to rpc.svcgssd +RPCSVCGSSDOPTS="" + # Timeout (in seconds) for exportfs EXPORTFSTIMEOUT=30 |