rgmanager: fix cpglockd vs rgmanager startup race condition with systemd
systemd consider a service fully operation as soon as /var/run/foo.pid is
written.
this creates a small window in which rgmanager can start before cpglockd
is operational and rgmanager would fail.
loop over cpglockdump to verify that cpglockd is functional and then
start rgmanager
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Lon Hohberger <lhh@redhat.com>
Reviewed-by: Ryan McCabe <rmccabe@redhat.com>