LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2004, 02:32 PM   #1
jonc
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
slackware 10 startup script


hey guys,

i was wondering how i could make my shell script containing iptables commands startup at boot. there are no rc1.d...rc5.d directories and i have tried putting the commands into rc.local but its not starting up for some reason.

could anyone help me with this, thanks.
 
Old 12-04-2004, 02:37 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Actually Slackware usually has a rc.firewall script you can have rc.M call upon that I'm sure you place your iptables or firewall rules into. I'd suggest trying that first.
 
Old 12-04-2004, 05:02 PM   #3
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 301

Rep: Reputation: 35
slackware 10

Hello jonc

You will find that /etc/rc.d/rc/inet2 has some script in it that will start your iptables script, if you name the iptables script you created rc.firewall.

Also, you need to place your rc.firewall script in /etc/rc.d and make it executable.

Doing that will make your script start automatically at the right time of the boot process.

I don't know who created the default rc scripts, but they did a great job. (is it Patrick Volkerding?)

Good Luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
Slackware Startup script CPUFreak91 Linux - Newbie 3 07-19-2005 05:19 PM
startup script ... again. Vindane Linux - Wireless Networking 2 03-04-2005 02:57 AM
startup script under X + RH mehesque Linux - General 2 06-16-2004 05:48 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration