Was failing with more than one OSD / MON deamon on a single node.
Fixes suse bugzilla #927862
Signed-off-by: Owen Synge <osynge@suse.com>
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