From: Owen Synge Date: Thu, 7 May 2015 10:02:41 +0000 (+0200) Subject: Bug fix to ceph systemV compatability script. X-Git-Tag: v9.0.3~148^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dfda3ff8741fcdbac3150456ca7614cf75ef1776;p=ceph.git Bug fix to ceph systemV compatability script. Was failing with more than one OSD / MON deamon on a single node. Fixes suse bugzilla #927862 Signed-off-by: Owen Synge --- diff --git a/systemd/ceph b/systemd/ceph index 251b4a032fe4..1657779f44cc 100644 --- a/systemd/ceph +++ b/systemd/ceph @@ -33,14 +33,14 @@ prefix="${cluster}-" case $action in start | stop | status | enable | disable | mask | unmask | restart | is-active | is-failed | show | kill | reset-failed ) n=0 - if test -n ${lmon} ; then + if test -n "${lmon}" ; then for s in ${lmon#=${prefix}} ; do systemctl "${action}" ceph-mon@${s#$prefix}.service rc_check ((++n)) done fi - if test -n ${losd} ; then + if test -n "${losd}" ; then for s in ${losd#=${prefix}} ; do systemctl "${action}" ceph-osd@${s#$prefix}.service rc_check