Newer
Older

Alberto LIVIO BECCARIA
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Keep the following services in proper shutdown order
# (Check with the start/stop numbers in the init file)
#
# NOTE: This seems to work. Moving netfs at the end does not work.
# If you modify this, test-test-test...
SERVICES="rpcidmapd rpcgssd nfslock rpcbind"
stop() {
echo "STOPPING NFS"
if [ ${ESAME_NFS} -eq 0 ]; then
sync
umount /home
for i in ${SERVICES}; do
service "$i" stop
done
fi
}
start() {
echo "STARTING NFS"
for i in ${SERVICES}; do
service "$i" start
done
mount /home
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
stop
start
;;
*)
echo "Usage: $0 { start | stop | restart }";
exit 1;
;;
esac
exit 0