Lines 54-59
Link Here
|
54 |
|
54 |
|
55 |
start() { |
55 |
start() { |
56 |
start_statd |
56 |
start_statd |
|
|
57 |
|
57 |
|
58 |
|
58 |
# Exportfs likes to hang if networking isn't working. |
59 |
# Exportfs likes to hang if networking isn't working. |
59 |
# If that's the case, then try to kill it so the |
60 |
# If that's the case, then try to kill it so the |
Lines 85-93
Link Here
|
85 |
start-stop-daemon --start --quiet --exec \ |
86 |
start-stop-daemon --start --quiet --exec \ |
86 |
$mountd -- $RPCMOUNTDOPTS 1>&2 |
87 |
$mountd -- $RPCMOUNTDOPTS 1>&2 |
87 |
eend $? "Error starting NFS mountd" |
88 |
eend $? "Error starting NFS mountd" |
|
|
89 |
|
90 |
# post-2.4 nfs features |
91 |
if [ "$(get_KV)" -ge "$(KV_to_int '2.5.0')" ]; then |
92 |
ebegin "Starting kernel 2.6 NFS features" |
93 |
if [ -e /var/lib/rpc_pipes ]; then |
94 |
mount -trpc_pipefs none /var/lib/rpc_pipes |
95 |
fi |
96 |
mount -tnfsd none /proc/fs/nfs |
97 |
ebegin "Starting idmapd" |
98 |
start-stop-daemon --start --quiet --exec \ |
99 |
/usr/bin/idmapd -- -p /var/lib/rpc_pipes/nfs 1>&2 |
100 |
eend $? "Error starting idmapd" |
101 |
eend $? "Error starting kernel 2.6 NFS features" |
102 |
fi |
88 |
} |
103 |
} |
89 |
|
104 |
|
90 |
stop() { |
105 |
stop() { |
|
|
106 |
# post-2.4 nfs features |
107 |
if [ "$(get_KV)" -ge "$(KV_to_int '2.5.0')" ]; then |
108 |
ebegin "Stopping kernel 2.6 NFS features" |
109 |
ebegin "Stopping idmapd" |
110 |
start-stop-daemon --stop --quiet --exec \ |
111 |
/usr/bin/idmapd 1>&2 |
112 |
eend $? "Error stopping idmapd" |
113 |
if [ -e /var/lib/rpc_pipes ]; then |
114 |
umount /var/lib/rpc_pipes |
115 |
fi |
116 |
umount /proc/fs/nfs |
117 |
eend $? "Error stopping kernel 2.6 NFS features" |
118 |
fi |
119 |
|
91 |
# Don't check NFSSERVER variable since it might have changed, |
120 |
# Don't check NFSSERVER variable since it might have changed, |
92 |
# instead use --oknodo to smooth things over |
121 |
# instead use --oknodo to smooth things over |
93 |
ebegin "Stopping NFS mountd" |
122 |
ebegin "Stopping NFS mountd" |