1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

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>
This commit is contained in:
Qiang Chen
2013-10-22 13:14:21 +08:00
committed by Richard Purdie
parent 52a3c78719
commit aedf3d9143
@@ -144,26 +144,26 @@ stop_statd(){
# restart: stops and starts mountd # restart: stops and starts mountd
#FIXME: need to create the /var/lib/nfs/... directories #FIXME: need to create the /var/lib/nfs/... directories
case "$1" in case "$1" in
start) create_directories start) create_directories
start_nfsd "$NFS_SERVERS" start_nfsd "$NFS_SERVERS"
start_mountd start_mountd
start_statd start_statd
test -r /etc/exports && exportfs -a;; test -r /etc/exports && exportfs -a;;
stop) exportfs -ua stop) exportfs -ua
stop_statd stop_statd
stop_mountd stop_mountd
stop_nfsd;; stop_nfsd;;
status) status)
status /usr/sbin/rpc.mountd status /usr/sbin/rpc.mountd
RETVAL=$? RETVAL=$?
status nfsd status nfsd
rval=$? rval=$?
[ $RETVAL -eq 0 ] && exit $rval [ $RETVAL -eq 0 ] && exit $rval
exit $RETVAL;; exit $RETVAL;;
reload) test -r /etc/exports && exportfs -r;; reload) test -r /etc/exports && exportfs -r;;
restart) restart)
$0 stop $0 stop
$0 start;; $0 start;;
*) echo "Usage: $0 {start|stop|status|reload|restart}" *) echo "Usage: $0 {start|stop|status|reload|restart}"
exit 1;; exit 1;;
esac esac