Hideo-san, i updated your postfix.patch2 the way i would improve it.
any objections?
cheers,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. [email protected]
Technischer Leiter
IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. [email protected]
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
diff -r 86d78d7f93c1 -r f9be80ae7fbb ipax-mgm/ocf/postfix
--- a/ipax-mgm/ocf/postfix Mon Jun 06 15:04:45 2011 +0200
+++ b/ipax-mgm/ocf/postfix Mon Jun 06 15:21:01 2011 +0200
@@ -124,15 +124,17 @@
fi
# grant some time for startup/forking the sub processes
- sleep 2
-
- # initial monitoring action
- running
- ret=$?
- if [ $ret -ne $OCF_SUCCESS ]; then
+ # and loop initial monitoring until success or timeout
+ while true; do
+ sleep 1
+ running
+ ret=$?
+ if [ $ret -eq $OCF_SUCCESS ]; then
+ # monitoring success - exit
+ break;
+ fi
ocf_log err "Postfix failed initial monitor action." $ret
- return $OCF_ERR_GENERIC
- fi
+ done
ocf_log info "Postfix started."
return $OCF_SUCCESS
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/