summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-08 20:34:06 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-08 20:34:06 +0000
commit5a2247bad18411d84c4aa4ef91fe31b90cb50401 (patch)
treeb82a97e43a5f9cc08ee8473804ceae606973237a /net-fs/nfs-utils/files
parentmultilib fixes (diff)
downloadgentoo-2-5a2247bad18411d84c4aa4ef91fe31b90cb50401.tar.gz
gentoo-2-5a2247bad18411d84c4aa4ef91fe31b90cb50401.tar.bz2
gentoo-2-5a2247bad18411d84c4aa4ef91fe31b90cb50401.zip
Add support for starting/stopping gssd daemons #108276 and installing their config files. Also tweak the man-pages SEE ALSO #107991.
(Portage version: 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-r21
-rwxr-xr-xnet-fs/nfs-utils/files/nfs81
-rw-r--r--net-fs/nfs-utils/files/nfs-utils-1.0.7-man-pages.patch12
-rw-r--r--net-fs/nfs-utils/files/nfs.confd9
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