diff options
author | Qiang Chen <qiang.chen@windriver.com> | 2013-10-22 13:14:21 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-30 17:33:00 +0000 |
commit | a6b02fe439fa13c8482383fba2bfdcb0e9742141 (patch) | |
tree | cd449d45203b03752388ed1cc76fc68136d4615d /meta/recipes-connectivity | |
parent | 80f29b04b1d0a9357f193085224ccf2bf8f530fa (diff) | |
download | openembedded-core-a6b02fe439fa13c8482383fba2bfdcb0e9742141.tar.gz openembedded-core-a6b02fe439fa13c8482383fba2bfdcb0e9742141.tar.bz2 openembedded-core-a6b02fe439fa13c8482383fba2bfdcb0e9742141.zip |
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.
Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-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(){ # restart: stops and starts mountd #FIXME: need to create the /var/lib/nfs/... directories case "$1" in -start) create_directories + start) create_directories start_nfsd "$NFS_SERVERS" start_mountd start_statd test -r /etc/exports && exportfs -a;; -stop) exportfs -ua + stop) exportfs -ua stop_statd stop_mountd stop_nfsd;; -status) + status) status /usr/sbin/rpc.mountd RETVAL=$? status nfsd rval=$? [ $RETVAL -eq 0 ] && exit $rval exit $RETVAL;; -reload) test -r /etc/exports && exportfs -r;; -restart) + reload) test -r /etc/exports && exportfs -r;; + restart) $0 stop $0 start;; -*) echo "Usage: $0 {start|stop|status|reload|restart}" + *) echo "Usage: $0 {start|stop|status|reload|restart}" exit 1;; esac |