Last change
on this file since 78b069e was 78b069e, checked in by Joe Ciccone <jciccone@…>, 16 years ago |
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | # Begin $rc_base/init.d/nfs-client
|
---|
3 |
|
---|
4 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
5 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
6 |
|
---|
7 | #$LastChangedBy: bdubbs $
|
---|
8 | #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
---|
9 |
|
---|
10 | . /etc/sysconfig/rc
|
---|
11 | . $rc_functions
|
---|
12 | . /etc/sysconfig/nfs-client
|
---|
13 |
|
---|
14 | case "$1" in
|
---|
15 | start)
|
---|
16 | boot_mesg "Starting NFS statd..."
|
---|
17 | loadproc /usr/sbin/rpc.statd
|
---|
18 |
|
---|
19 | if [ "$NFS4" = "yes" ]; then
|
---|
20 | boot_mesg "Starting NFS gssd..."
|
---|
21 | loadproc /usr/sbin/rpc.gssd -k ${NFS4KEYTAB:-/etc/nfs4.keytab}
|
---|
22 |
|
---|
23 | boot_mesg "Starting NFS idmapd..."
|
---|
24 | loadproc /usr/sbin/rpc.idmapd
|
---|
25 | fi
|
---|
26 |
|
---|
27 | ;;
|
---|
28 |
|
---|
29 | stop)
|
---|
30 | boot_mesg "Stopping NFS idmapd..."
|
---|
31 | killproc /usr/sbin/rpc.idmapd
|
---|
32 |
|
---|
33 | boot_mesg "Stopping NFS gssd..."
|
---|
34 | killproc /usr/sbin/rpc.gssd
|
---|
35 |
|
---|
36 | boot_mesg "Stopping NFS statd..."
|
---|
37 | killproc /usr/sbin/rpc.statd
|
---|
38 | ;;
|
---|
39 |
|
---|
40 | restart)
|
---|
41 | $0 stop
|
---|
42 | sleep 1
|
---|
43 | $0 start
|
---|
44 | ;;
|
---|
45 |
|
---|
46 | status)
|
---|
47 | statusproc /usr/sbin/rpc.statd
|
---|
48 | statusproc /usr/sbin/rpc.gssd
|
---|
49 | statusproc /usr/sbin/rpc.idmapd
|
---|
50 | ;;
|
---|
51 |
|
---|
52 | *)
|
---|
53 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
54 | exit 1
|
---|
55 | ;;
|
---|
56 | esac
|
---|
57 |
|
---|
58 | # End $rc_base/init.d/nfs-client
|
---|
Note:
See
TracBrowser
for help on using the repository browser.