Hi All,
The next patch supports a loop of the waiting of the start processing
successively.
The start processing revised it like other resource agents to wait on for start.
Best Regards,
Hideo Yamauchi.
--- On Mon, 2011/6/6, [email protected] <[email protected]>
wrote:
> Hi All,
>
> I send a patch in conjunction with the status processing.
> It is made the following modifications.
>
> * Carry out status processing in a version judgment
> * Change of the parameter check
> * Error log when status processing failed
> * Value set of the ret variable
>
> I send the patch of other corrections later.
>
> Please comment on all of you for the patch.
>
>
> Best Regards,
> Hideo Yamauchi.
>
>
> --- On Fri, 2011/6/3, Dejan Muhamedagic <[email protected]> wrote:
>
> > On Fri, Jun 03, 2011 at 12:03:20PM +0200, Raoul Bhatia [IPAX] wrote:
> > > On 06/03/2011 11:45 AM, Dejan Muhamedagic wrote:
> > > > Regressions are bad. You have to keep in mind that not everybody
> > > > runs the latest release of postfix. This really needs to be fixed
> > > > before the release.
> > >
> > > it's no regression but has been like that since the initial release.
> > > see commit e7af463d or
> > >
> > > https://github.com/ClusterLabs/resource-agents/blame/master/heartbeat/postfix#LID100
> > >
> > > i didn't know this until Noah brought this to my/our attention:
> > > http://www.gossamer-threads.com/lists/linuxha/pacemaker/72379#72379
> >
> > OK. I misunderstood the post, it seemed to me as if status had
> > been introduced in the latest set of patches. This is another
> > matter then.
> >
> > Cheers,
> >
> > Dejan
> >
> > > thanks,
> > > 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
> > > ____________________________________________________________________
> > _______________________________________________________
> > Linux-HA-Dev: [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> >
diff -r 6f405d0b697b postfix
--- a/postfix Mon Jun 06 11:56:47 2011 +0900
+++ b/postfix Mon Jun 06 12:04:58 2011 +0900
@@ -139,12 +139,16 @@
sleep 2
# initial monitoring action
- running
- ret=$?
- if [ $ret -ne $OCF_SUCCESS ]; then
- ocf_log err "Postfix failed initial monitor action." $ret
- return $OCF_ERR_GENERIC
- fi
+ while :
+ do
+ running
+ ret=$?
+ if [ $ret -eq $OCF_SUCCESS ]; then
+ break;
+ fi
+ sleep 1
+ ocf_log debug "Postfix failed initial monitor action." $ret
+ 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/