Skip to content

Commit

Permalink
Bug fix to ceph systemV compatability script.
Browse files Browse the repository at this point in the history
Was failing with more than one OSD / MON deamon on a single node.
Fixes suse bugzilla #927862

Signed-off-by: Owen Synge <[email protected]>
  • Loading branch information
oms4suse committed Jun 18, 2015
1 parent bfa0c4a commit dfda3ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systemd/ceph
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfda3ff

Please sign in to comment.