]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Bug fix to ceph systemV compatability script. 5002/head
authorOwen Synge <osynge@suse.com>
Thu, 7 May 2015 10:02:41 +0000 (12:02 +0200)
committerOwen Synge <osynge@suse.com>
Thu, 18 Jun 2015 15:15:22 +0000 (17:15 +0200)
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>
systemd/ceph

index 251b4a032fe4d0e9858f63fe6c13d4eaaa335427..1657779f44cc7577b49d9a6c874c07a68df50d6e 100644 (file)
@@ -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