[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: boot scripts



This adds the script nicely, but it fails to start the script with a "Unable 
to start /usr/bin/firewall.sh: Exec format error"

The script can be started manually from the command line with "firewall.sh 
start" I should point out that this is just a plain text file with iptable 
rules. It has no code. It is 755 like the other files and can be executed 
manually, but it will not start at boot.

What am I doing wrong, and thanks for the tip. This looks to be a clean way of 
maintaining custom scripts.

On Tuesday 30 July 2002 08:44 am, Liam Ward wrote: > On 30 Jul 2002 at 7:41, 
Jamin W. Collins wrote: > > The normal way to do this is to create a new 
control script > > (/etc/init.d/skeleton is a good starting point) that will 
start and > > stop your firewall script as needed. Then link this into the 
proper > > run levels. > > To make life easy for yourself and keep things 
simple , use update-rc.d to > create these links: > > update-rc.d <myscript> 
defaults > > That is probably OK but there are other options in "man 
update-rc.d". > <myscript> is just the filename of the script you don't need 
> /etc/init.d/<myscript> > > Good luck. > > Liam

--

Richard B. Tilley (Brad), System Administrator & Web Developer University of 
Virginia Tech, Office of the University Bursar Phone: 540.231.6277 Fax: 
540.231.3238 Web: http://bursar.vt.edu



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: