From: TAKATSUKA Haruka Date: Fri, 13 Sep 2013 00:27:26 +0000 (+0900) Subject: Add wait loop to start action function. X-Git-Tag: PGPOOL_HA_2_2~3 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=44d60fe9825fbcbb4de43c5403ceac9fb054b0eb;p=pgpoolha.git Add wait loop to start action function. Formerly, script does not wait thet pgpool become ready at start action. --- diff --git a/pgpool.in b/pgpool.in index b218a80..0e42a35 100644 --- a/pgpool.in +++ b/pgpool.in @@ -196,6 +196,11 @@ do_start() { return $OCF_ERR_GENERIC fi + while ( ! pidfile_process_exists_p ) ; do + ocf_log debug "${OCF_RESOURCE_INSTANCE}: not started yet, waiting" + sleep 1 + done + return $OCF_SUCCESS }