diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver index d7cf6e0048..c263f14f32 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | |||
@@ -144,26 +144,26 @@ stop_statd(){ | |||
144 | # restart: stops and starts mountd | 144 | # restart: stops and starts mountd |
145 | #FIXME: need to create the /var/lib/nfs/... directories | 145 | #FIXME: need to create the /var/lib/nfs/... directories |
146 | case "$1" in | 146 | case "$1" in |
147 | start) create_directories | 147 | start) create_directories |
148 | start_nfsd "$NFS_SERVERS" | 148 | start_nfsd "$NFS_SERVERS" |
149 | start_mountd | 149 | start_mountd |
150 | start_statd | 150 | start_statd |
151 | test -r /etc/exports && exportfs -a;; | 151 | test -r /etc/exports && exportfs -a;; |
152 | stop) exportfs -ua | 152 | stop) exportfs -ua |
153 | stop_statd | 153 | stop_statd |
154 | stop_mountd | 154 | stop_mountd |
155 | stop_nfsd;; | 155 | stop_nfsd;; |
156 | status) | 156 | status) |
157 | status /usr/sbin/rpc.mountd | 157 | status /usr/sbin/rpc.mountd |
158 | RETVAL=$? | 158 | RETVAL=$? |
159 | status nfsd | 159 | status nfsd |
160 | rval=$? | 160 | rval=$? |
161 | [ $RETVAL -eq 0 ] && exit $rval | 161 | [ $RETVAL -eq 0 ] && exit $rval |
162 | exit $RETVAL;; | 162 | exit $RETVAL;; |
163 | reload) test -r /etc/exports && exportfs -r;; | 163 | reload) test -r /etc/exports && exportfs -r;; |
164 | restart) | 164 | restart) |
165 | $0 stop | 165 | $0 stop |
166 | $0 start;; | 166 | $0 start;; |
167 | *) echo "Usage: $0 {start|stop|status|reload|restart}" | 167 | *) echo "Usage: $0 {start|stop|status|reload|restart}" |
168 | exit 1;; | 168 | exit 1;; |
169 | esac | 169 | esac |