LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-26-2007, 06:47 PM   #1
Hyakutake
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Slackware
Posts: 154

Rep: Reputation: 19
scripts not running at boot


Hello all.

I have this small firewall (rc.firewall) in /etc/rc.d/ so that it can start the firewall at boot.
The thing is it does not work. With 11 it worked fine.

How can I fix this?
 
Old 07-26-2007, 07:27 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
It needs to be executable
Code:
chmod +x /etc/rc.d/rc.firewall
 
Old 07-26-2007, 07:29 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
How are you trying to start the script? Have you added it to /etc/rc.d/rc.local? Are /etc/rc.d/rc.local and your /etc/rc.d/rc.firewall scripts executable? Do you get any errors that you can post here?
 
Old 07-27-2007, 07:07 AM   #4
Hyakutake
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 19
Thanks for your replies.

mRgOBLIN: Yes script is executable.

Needed to add to rc.local as gilead said.

Thanks all.
 
Old 07-27-2007, 08:16 AM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by Hyakutake
Thanks for your replies.

mRgOBLIN: Yes script is executable.

Needed to add to rc.local as gilead said.

Thanks all.
Doesn't make a lot of sense...

If you look in /etc/rc.d/rc.inet2 you'll see this block of code

Code:
# If there is a firewall script, run it before enabling packet forwarding.
# See the HOWTOs on http://www.netfilter.org/ for documentation on
# setting up a firewall or NAT on Linux.  In some cases this might need to
# be moved past the section below dealing with IP packet forwarding.
if [ -x /etc/rc.d/rc.firewall ]; then
  /etc/rc.d/rc.firewall start
fi

# Turn on IPv4 packet forwarding support.
if [ -x /etc/rc.d/rc.ip_forward ]; then
  . /etc/rc.d/rc.ip_forward start
fi
 
Old 07-28-2007, 04:43 AM   #6
Hyakutake
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 19
Yes it doesn't make allot of sense, but it only works if the line is added to rc.local.

Code:
-rwxr-xr-x 1 root root   978 2007-07-04 10:42 rc.firewall
Thanks anyway.
 
Old 07-28-2007, 09:32 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Unless, of course, rc.inet2 is not executable either. Is it?
 
Old 07-31-2007, 07:50 AM   #8
Hyakutake
Member
 
Registered: Apr 2004
Location: Portugal
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 19
Yes it was.

Thanks uselpa.
 
  


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
Running network scripts on boot Brynn Linux - Wireless Networking 6 11-08-2006 10:39 AM
running scripts at boot dglock Linux - General 3 08-15-2006 02:15 PM
running scripts at boot... thedp SUSE / openSUSE 2 10-17-2005 09:21 AM
running scripts at boot viniosity Ubuntu 3 07-19-2005 09:52 PM
Running scripts at boot time saintt Linux - Software 1 08-09-2002 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:52 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