Change the line per a system call in perl. Something like that

system("your script");

Regards
 El 03/07/2013 08:46, "tibz" <[email protected]> escribió:

>  Hello Emilio,
>
> We run a virtualized cluster of ZLB 2.0 release. A while ago, I added my
> script at the place you indicated below. Today after we restarted the slave
> ZLB, both ZLB "crashed" (loss of connectivity, no IP).
> After restoring the IP connectivity (hopefully theses are VMs so I had
> console access ...) I tried to start the zlb service which gave me:
>
> syntax error at /etc/init.d/zenloadbalancer line 492, near "/usr/local"
> Execution of /etc/init.d/zenloadbalancer aborted due to compilation errors.
>
>
> The line 492:
>
>     489                         print " Farm $farmname configured DOWN\n";
>     490                 }
>     491         }
>     492        /usr/local/zenloadbalancer/app/zlb-firewall.sh
>     493 }
>     494
>     495 if ($eject eq "stoplocal"){
>
> Can you kindly let me know why and how to properly include this script at
> startup ?
>
> Thanks
> tibz
>
> On 07/12/2012 15:16, Emilio Campos wrote:
>
> Hi tibz, make your own script and after include a call in the
> /etc/init.d/zenloadbalancer script,  I attach you a code portion to explain
> where you have to include the call
>
> .
> .
> .
> .
>                         }
>                 } else {
>                         print " Farm $farmname configured DOWN\n";
>                 }
>         }
>
> #enter here your script
> /usr/local/zenloadbalancer/app/tibzscript.sh
> }
>
> if ($eject eq "stoplocal"){
>         print "Stopping Zen Load Balancer...\n";
> .
> .
> .
> .
> .
> This should run your iptables script after zen configures the system,
> cluster service is included.
>
> We are working to include this property in new releases.
>
> We apreciate your suggestion, thanks
>
>
> 2012/12/6 tibz <[email protected]>
>
>> Hello,
>>
>> For some reason we have to restrict access to a farm, it means that we
>> want only a bunch of IP to be able to use it.
>>
>> I've seen that iptables is present in ZLB, so I suppose I can achieve
>> this with some rules. Any one has done that before? I want to know if
>> there are any special consideration to have with ZLB, particularly when
>> running a cluster. (allow vrrp prob, allow connection between both
>> member, ...).
>>
>> Btw it could be an addition for futur version? In farm properties,
>> saying who can access a farm ("any" by default or a list of ip/subnet).
>>
>> Thanks!
>> tibz
>>
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> Zenloadbalancer-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>
>
>
> --
> Load balancer distribution - Open Source Project
> http://www.zenloadbalancer.com
> Distribution list (subscribe):
> [email protected]
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue 
> delivershttp://p.sf.net/sfu/logmein_12329d2d
>
>
>
> _______________________________________________
> Zenloadbalancer-support mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Zenloadbalancer-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to