Last change
on this file since ad1a0bc was ad1a0bc, checked in by Joe Ciccone <jciccone@…>, 16 years ago |
Add NFS4 Support.
|
-
Property mode
set to
100644
|
File size:
888 bytes
|
Rev | Line | |
---|
[7df280d] | 1 | #!/bin/bash
|
---|
[7125722] | 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
|
---|
[ad1a0bc] | 12 | . /etc/sysconfig/nfs-client
|
---|
[7125722] | 13 |
|
---|
| 14 | case "$1" in
|
---|
| 15 | start)
|
---|
| 16 | boot_mesg "Starting NFS statd..."
|
---|
| 17 | loadproc /usr/sbin/rpc.statd
|
---|
[ad1a0bc] | 18 |
|
---|
| 19 | if [ "$NFS4" = "yes" ]; then
|
---|
| 20 | bootmesg "Starting NFS gssd"
|
---|
| 21 | loadproc /usr/sbin/rpc.gssd -k ${NFS4KEYTAB:-/etc/nfs4.keytab}
|
---|
| 22 |
|
---|
| 23 | bootmesg "Starting NFS idmapd"
|
---|
| 24 | loadproc /usr/sbin/rpc.idmapd
|
---|
| 25 | fi
|
---|
| 26 |
|
---|
[7125722] | 27 | ;;
|
---|
| 28 |
|
---|
| 29 | stop)
|
---|
| 30 | boot_mesg "Stopping NFS statd..."
|
---|
| 31 | killproc /usr/sbin/rpc.statd
|
---|
| 32 | ;;
|
---|
| 33 |
|
---|
| 34 | restart)
|
---|
| 35 | $0 stop
|
---|
| 36 | sleep 1
|
---|
| 37 | $0 start
|
---|
| 38 | ;;
|
---|
| 39 |
|
---|
| 40 | status)
|
---|
| 41 | statusproc /usr/sbin/rpc.statd
|
---|
| 42 | ;;
|
---|
| 43 |
|
---|
| 44 | *)
|
---|
| 45 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
| 46 | exit 1
|
---|
| 47 | ;;
|
---|
| 48 | esac
|
---|
| 49 |
|
---|
| 50 | # End $rc_base/init.d/nfs-client
|
---|
Note:
See
TracBrowser
for help on using the repository browser.