summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-08-21 01:28:17 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:47:17 +0100
commitf032008b12cbbb5b4e54cdf6eef024fa5d4f695e (patch)
tree07e93d8a8a85eb792b82f7b9eb6c9cd858f3f4aa /meta
parent4309a9ea8f4cdb271a7df658616ec3daacbb684d (diff)
downloadpoky-f032008b12cbbb5b4e54cdf6eef024fa5d4f695e.tar.gz
nfs-utils: add init.d/nfsserver status command for LSB compliance
(From OE-Core rev: d5132337fa08ee74eaebadaeaecb6b4f5b2c5190) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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