summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiang Chen <qiang.chen@windriver.com>2013-10-22 13:14:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-30 17:33:12 +0000
commitaedf3d914392df1082abdcde80880d67b34f7e77 (patch)
tree6c5eebb4984c7eeee1a191cfe53c15918fb67d6c
parent52a3c787199393cfbc3c13efac7cd4356605d5a2 (diff)
downloadpoky-aedf3d914392df1082abdcde80880d67b34f7e77.tar.gz
nfs-utils: modify nfsserver init script indent
Using sysvinit testing service status, nfsserver status allways display as [?] unknown. This is because sysvinit package check whether service's init script supporting status function or not by: grep -qs "\Wstatus)" "$SERVICE" So, this commit modified the indent for status etc, as most service's init script does. (From OE-Core rev: a6b02fe439fa13c8482383fba2bfdcb0e9742141) Signed-off-by: Qiang Chen <qiang.chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver12
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
146case "$1" in 146case "$1" in
147start) 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;;
152stop) exportfs -ua 152 stop) exportfs -ua
153 stop_statd 153 stop_statd
154 stop_mountd 154 stop_mountd
155 stop_nfsd;; 155 stop_nfsd;;
156status) 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;;
163reload) test -r /etc/exports && exportfs -r;; 163 reload) test -r /etc/exports && exportfs -r;;
164restart) 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;;
169esac 169esac