mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
ctdb-doc: Whitespace fixes in example NFS ganesha callout
Fix some whitespace errors, reindent the whole script and wrap lines where needed. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
42d0577217
commit
3f9f31bf25
@ -200,7 +200,8 @@ create_ganesha_recdirs ()
|
||||
check_ln "$_link_dst" "$GANRECDIR"
|
||||
;;
|
||||
glusterfs)
|
||||
[ -d /var/lib/nfs.backup ] || mv /var/lib/nfs /var/lib/nfs.backup
|
||||
[ -d /var/lib/nfs.backup ] || \
|
||||
mv /var/lib/nfs /var/lib/nfs.backup
|
||||
check_ln ${NODESTATEDIR} /var/lib/nfs
|
||||
|
||||
mkdir -p ${NODESTATEDIR}/ganesha/v4recov
|
||||
@ -214,8 +215,10 @@ create_ganesha_recdirs ()
|
||||
check_ln ${NODESTATEDIR} ${NODESTATELN}
|
||||
for node in `ls ${GANSTATEDIR}`; do
|
||||
if [ "${node}" != "${host}" ]; then
|
||||
check_ln ${GANSTATEDIR}/${node}/ganesha ${NODESTATEDIR}/ganesha/${node}
|
||||
check_ln ${GANSTATEDIR}/${node}/statd ${NODESTATEDIR}/statd/${node}
|
||||
check_ln ${GANSTATEDIR}/${node}/ganesha \
|
||||
${NODESTATEDIR}/ganesha/${node}
|
||||
check_ln ${GANSTATEDIR}/${node}/statd \
|
||||
${NODESTATEDIR}/statd/${node}
|
||||
fi
|
||||
done
|
||||
;;
|
||||
@ -236,7 +239,9 @@ service_check ()
|
||||
_pidfile="/var/run/ganesha.pid"
|
||||
_ganesha="/usr/bin/ganesha.nfsd"
|
||||
if ! { read _pid < "$_pidfile" && \
|
||||
grep "$_ganesha" "${procfs}/${_pid}/cmdline" ; } >/dev/null 2>&1 ; then
|
||||
grep "$_ganesha" "${procfs}/${_pid}/cmdline" ; } >/dev/null 2>&1
|
||||
then
|
||||
|
||||
echo "ERROR: NFS Ganesha not running according to PID file"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user