From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-fs/nfs-utils/files: nfs.initd |
Date: | Sat, 31 Jan 2009 22:12:56 |
Message-Id: | E1LTO57-0006hT-Nu@stork.gentoo.org |
1 | vapier 09/01/31 22:12:53 |
2 | |
3 | Modified: nfs.initd |
4 | Log: |
5 | Restart rpc.idmapd if nfsd is a module #220747 by Jochen Radmacher. |
6 | |
7 | Revision Changes Path |
8 | 1.15 net-fs/nfs-utils/files/nfs.initd |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.15&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.15&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.14&r2=1.15 |
13 | |
14 | Index: nfs.initd |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
17 | retrieving revision 1.14 |
18 | retrieving revision 1.15 |
19 | diff -u -r1.14 -r1.15 |
20 | --- nfs.initd 5 May 2008 04:36:12 -0000 1.14 |
21 | +++ nfs.initd 31 Jan 2009 22:12:53 -0000 1.15 |
22 | @@ -1,7 +1,7 @@ |
23 | #!/sbin/runscript |
24 | -# Copyright 1999-2007 Gentoo Foundation |
25 | +# Copyright 1999-2009 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.14 2008/05/05 04:36:12 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.15 2009/01/31 22:12:53 vapier Exp $ |
29 | |
30 | opts="reload" |
31 | |
32 | @@ -42,9 +42,15 @@ |
33 | } |
34 | |
35 | mount_nfsd() { |
36 | - # Make sure nfs support is loaded in the kernel #64709 |
37 | - if [ -e /proc/modules ] && ! grep -qs nfsd /proc/filesystems ; then |
38 | - modprobe -q nfsd |
39 | + if [ -e /proc/modules ] ; then |
40 | + # Make sure nfs support is loaded in the kernel #64709 |
41 | + if ! grep -qs nfsd /proc/filesystems ; then |
42 | + modprobe -q nfsd |
43 | + fi |
44 | + # Restart idmapd if needed #220747 |
45 | + if grep -qs nfsd /proc/modules ; then |
46 | + killall -q -HUP rpc.idmapd |
47 | + fi |
48 | fi |
49 | |
50 | # This is the new "kernel 2.6 way" to handle the exports file |