summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
index e460e26af0..1ac6fec023 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
@@ -14,6 +14,8 @@
14# 14#
15# Startup script for nfs-utils 15# Startup script for nfs-utils
16# 16#
17# Source function library.
18. /etc/init.d/functions
17# 19#
18# The environment variable NFS_SERVERS may be set in /etc/default/nfsd 20# The environment variable NFS_SERVERS may be set in /etc/default/nfsd
19# Other control variables may be overridden here too 21# Other control variables may be overridden here too
@@ -141,6 +143,13 @@ stop) exportfs -ua
141 stop_statd 143 stop_statd
142 stop_mountd 144 stop_mountd
143 stop_nfsd;; 145 stop_nfsd;;
146status)
147 status /usr/sbin/rpc.mountd
148 RETVAL=$?
149 status nfsd
150 rval=$?
151 [ $RETVAL -eq 0 ] && exit $rval
152 exit $RETVAL;;
144reload) test -r /etc/exports && exportfs -r;; 153reload) test -r /etc/exports && exportfs -r;;
145restart)exportfs -ua 154restart)exportfs -ua
146 stop_mountd 155 stop_mountd
@@ -150,4 +159,6 @@ restart)exportfs -ua
150 start_mountd 159 start_mountd
151 start_statd 160 start_statd
152 test -r /etc/exports && exportfs -a;; 161 test -r /etc/exports && exportfs -a;;
162*) echo "Usage: $0 {start|stop|status|reload|restart}"
163 exit 1;;
153esac 164esac