1 |
vapier 08/04/20 00:52:25 |
2 |
|
3 |
Modified: nfs.initd rpc.gssd.initd |
4 |
Added: rpc.svcgssd.initd |
5 |
Log: |
6 |
Split the gssd and svcgssd init.d scripts #186037 by Paul B. Henson. |
7 |
(Portage version: 2.2_pre5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.12 net-fs/nfs-utils/files/nfs.initd |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.12&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.12&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.11&r2=1.12 |
15 |
|
16 |
Index: nfs.initd |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
19 |
retrieving revision 1.11 |
20 |
retrieving revision 1.12 |
21 |
diff -u -r1.11 -r1.12 |
22 |
--- nfs.initd 4 Feb 2008 22:23:24 -0000 1.11 |
23 |
+++ nfs.initd 20 Apr 2008 00:52:24 -0000 1.12 |
24 |
@@ -1,7 +1,7 @@ |
25 |
#!/sbin/runscript |
26 |
# Copyright 1999-2007 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.11 2008/02/04 22:23:24 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.12 2008/04/20 00:52:24 vapier Exp $ |
30 |
|
31 |
opts="reload" |
32 |
|
33 |
@@ -19,12 +19,12 @@ |
34 |
local myneed="" |
35 |
if [ -e /etc/exports ] ; then |
36 |
if awk '!/^[[:space:]]*#/ && $2 ~ /sec=/ { exit 0 } END { exit 1 }' /etc/exports ; then |
37 |
- myneed="${myneed} rpc.gssd" |
38 |
+ myneed="${myneed} rpc.svcgssd" |
39 |
fi |
40 |
fi |
41 |
type -t config 2>/dev/null 1>&2 && config /etc/exports |
42 |
need portmap rpc.statd ${myneed} |
43 |
- use ypbind net dns rpc.rquotad rpc.idmapd rpc.gssd |
44 |
+ use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd |
45 |
after quota |
46 |
} |
47 |
|
48 |
|
49 |
|
50 |
|
51 |
1.7 net-fs/nfs-utils/files/rpc.gssd.initd |
52 |
|
53 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.7&view=markup |
54 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?rev=1.7&content-type=text/plain |
55 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd?r1=1.6&r2=1.7 |
56 |
|
57 |
Index: rpc.gssd.initd |
58 |
=================================================================== |
59 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v |
60 |
retrieving revision 1.6 |
61 |
retrieving revision 1.7 |
62 |
diff -u -r1.6 -r1.7 |
63 |
--- rpc.gssd.initd 4 Feb 2008 22:23:24 -0000 1.6 |
64 |
+++ rpc.gssd.initd 20 Apr 2008 00:52:24 -0000 1.7 |
65 |
@@ -1,13 +1,10 @@ |
66 |
#!/sbin/runscript |
67 |
-# Copyright 1999-2007 Gentoo Foundation |
68 |
+# Copyright 1999-2008 Gentoo Foundation |
69 |
# Distributed under the terms of the GNU General Public License v2 |
70 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.6 2008/02/04 22:23:24 vapier Exp $ |
71 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.7 2008/04/20 00:52:24 vapier Exp $ |
72 |
|
73 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
74 |
|
75 |
- gssd=/usr/sbin/rpc.gssd |
76 |
-svcgssd=/usr/sbin/rpc.svcgssd |
77 |
- |
78 |
depend() { |
79 |
use ypbind net |
80 |
need portmap |
81 |
@@ -25,31 +22,16 @@ |
82 |
fi |
83 |
} |
84 |
|
85 |
-start_it() { |
86 |
- ebegin "Starting $1" |
87 |
- shift |
88 |
- "$@" |
89 |
- eend $? |
90 |
- ret=$((ret + $?)) |
91 |
-} |
92 |
start() { |
93 |
mount_pipefs |
94 |
|
95 |
- local ret=0 |
96 |
- start_it gssd ${gssd} ${OPTS_RPC_GSSD} |
97 |
- start_it svcgssd ${svcgssd} ${OPTS_RPC_SVCGSSD} |
98 |
- return ${ret} |
99 |
-} |
100 |
- |
101 |
-stop_it() { |
102 |
- ebegin "Stopping $1" |
103 |
- start-stop-daemon --stop --exec $2 |
104 |
+ ebegin "Starting gssd" |
105 |
+ start-stop-daemon --stop --exec /usr/sbin/rpc.gssd ${OPTS_RPC_GSSD} |
106 |
eend $? |
107 |
- ret=$((ret + $?)) |
108 |
} |
109 |
+ |
110 |
stop() { |
111 |
- local ret=0 |
112 |
- stop_it gssd ${gssd} |
113 |
- stop_it svcgssd ${svcgssd} |
114 |
- return ${ret} |
115 |
+ ebegin "Stopping gssd" |
116 |
+ start-stop-daemon --stop --exec /usr/sbin/rpc.gssd |
117 |
+ eend $? |
118 |
} |
119 |
|
120 |
|
121 |
|
122 |
1.1 net-fs/nfs-utils/files/rpc.svcgssd.initd |
123 |
|
124 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd?rev=1.1&view=markup |
125 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd?rev=1.1&content-type=text/plain |
126 |
|
127 |
Index: rpc.svcgssd.initd |
128 |
=================================================================== |
129 |
#!/sbin/runscript |
130 |
# Copyright 1999-2008 Gentoo Foundation |
131 |
# Distributed under the terms of the GNU General Public License v2 |
132 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v 1.1 2008/04/20 00:52:24 vapier Exp $ |
133 |
|
134 |
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs |
135 |
|
136 |
depend() { |
137 |
use ypbind net |
138 |
need portmap |
139 |
after quota |
140 |
} |
141 |
|
142 |
mount_pipefs() { |
143 |
if grep -qs rpc_pipefs /proc/filesystems ; then |
144 |
if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then |
145 |
mkdir -p /var/lib/nfs/rpc_pipefs |
146 |
ebegin "Mounting RPC pipefs" |
147 |
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs |
148 |
eend $? |
149 |
fi |
150 |
fi |
151 |
} |
152 |
|
153 |
start() { |
154 |
mount_pipefs |
155 |
|
156 |
ebegin "Starting svcgssd" |
157 |
start-stop-daemon --stop --exec /usr/sbin/rpc.svcgssd ${OPTS_RPC_SVCGSSD} |
158 |
eend $? |
159 |
} |
160 |
|
161 |
stop() { |
162 |
ebegin "Stopping svcgssd" |
163 |
start-stop-daemon --stop --exec /usr/sbin/rpc.svcgssd |
164 |
eend $? |
165 |
} |
166 |
|
167 |
|
168 |
|
169 |
-- |
170 |
gentoo-commits@l.g.o mailing list |