diff --git a/systemvm/debian/opt/cloud/bin/cs/CsRedundant.py b/systemvm/debian/opt/cloud/bin/cs/CsRedundant.py index cefedbfe84f1..24748efba3d6 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsRedundant.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsRedundant.py @@ -194,7 +194,7 @@ def _redundant_on(self): heartbeat_cron.commit() proc = CsProcess(['/usr/sbin/keepalived']) - if not proc.find(): + if proc.grep("/usr/sbin/keepalived") == -1: force_keepalived_restart = True if keepalived_conf.is_changed() or force_keepalived_restart: keepalived_conf.commit()