
dejanmm at fastmail
Aug 27, 2010, 8:11 AM
Post #2 of 2
(191 views)
Permalink
|
|
Re: Suggestion for ocf script IPaddr : "route -n" instead of "route"
[In reply to]
|
|
Hi, On Fri, Aug 27, 2010 at 04:03:33PM +0200, Alain.Moulle wrote: > Hi, > > in script IPaddr, in the ip_stop function where we have : > > if [ `$ROUTE | grep $OCF_RESKEY_ip` ] > > I suggest to change by : > if [ `$ROUTE -n | grep $OCF_RESKEY_ip` ] > > so that if name resolution (dns) is not responding, it does > not prevent the ip_stop to run and the IP addr to be unconfigured . > > I had fallen in this case ... > And -n avoids the problem to occur. > > Am I right ? Suggestion accepted. Thanks for the information. Cheers, Dejan > Thanks > Alain > _______________________________________________ > Linux-HA mailing list > Linux-HA [at] lists > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list Linux-HA [at] lists http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
|