Title: Execute script at start up Post by: Blackice on Tuesday 20 March 2012, 11:12:42 am Hi,
I need something equivalent to rc.local in endian, a path or file that i can put a script in it to do something during the start up Any suggestions ?. Thanks Title: Re: Execute script at start up Post by: David.Dejaeghere on Saturday 24 March 2012, 01:08:41 am You can put custom startup scripts in /etc/rc.d/start/
Just have a look at other scripts there and create another accordingly. The number in the filename determines the order of the scripts to boot. If you want something running after the other scripts you can create a script called 99myscript. Also dont forget to make it executable with chmod +x 99myscript Title: Re: Execute script at start up Post by: Blackice on Saturday 24 March 2012, 07:13:11 pm Thanks for you help; what you have stated seems to be logic but i have tried it with no hope didn't work at all and I followed what you mentioned,
I'm trying to put some iptables rules as start up if there is any other way to make this, let me know please. Thanks for you help anyway :) . Title: Re: Execute script at start up Post by: David.Dejaeghere on Monday 26 March 2012, 10:30:59 pm Send me your script and i ll walk you through it
Title: Re: Execute script at start up Post by: rchav on Wednesday 28 March 2012, 01:43:44 am Hi. I also tried and the script didn't run on reboot.
I have a custom script for traffic shaping that I can run fine manually form the ssh console, but I want to be able to set it to run on boot. Thanks. Title: Re: Execute script at start up Post by: Blackice on Friday 30 March 2012, 08:42:43 pm @David.Dejaeghere
Thanks alot for offering help that way : my script is very very simple. It consists of iptables lines , regular commands I mean. Let say something like below iptables -t nat - I PORSTROUTING -s 10.10.10.10 -j MASQUERADE iptables -I INPUT 192.168.1.10 -j ACCEPT Waiting for you . Thanks Title: Re: Execute script at start up Post by: alex_t on Tuesday 16 October 2012, 12:09:23 am for me doesn,t work neither,
besides, at version 2.5.1 there is NO files in /etc/rc.d/start and when I put smth there (even with 775 permitions) it does not start automatically. (at 2.4. worked ok) Title: Re: Execute script at start up Post by: cocoalcazar on Friday 24 January 2014, 01:57:19 am another review to Endian 2.5.2.
Danke. Title: Re: Execute script at start up Post by: razametal on Tuesday 11 March 2014, 10:00:40 am This method is not working with EFW 3.0.
Any one knows how to execute one script at start up on EFW 3? |