On Sun, Feb 19, 2006 at 04:41:17PM +0200, Brent Clark wrote:
> Hi all
> 
> I have a firewall / gateway ruleset that I want excuted when the machine 
> needs to reboot.
> 
> I placed the script in /etc/network/if-up.d, but I found that on doing so, 
> the script did not execute.
> 
> Would anyone know how and where I can place my script for execution on the 
> machine when its boots up.
> 
> Kind Regards
> Brent Clark
> 
> 
Hi Brent,

a common way to tackle this task is to stick the script in /etc/init.d
and create a link to it from the directory /etc/rcx.d where x is the
runlevel you want to run in. The link should be called Sxxscriptname
where xx is an arbitrary number from 00 to 99. Mind you, looking in the
/etc/rcx.d directory you see other scripts which will bring up your
network, so make sure to give your link a higher number as the scripts
are executed in numerical order

Hth
-- 
Andreas Rippl -- GPG messages preferred
                 Key-ID: 0x81073379

Attachment: signature.asc
Description: Digital signature

Reply via email to