LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-10-2005, 01:21 AM   #1
charleswj
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Startup scripts not continuing after Shorewall script


I'm trying to configure Sentry Firewall which is based on Slackware and will be using Shorewall to configure iptables. My firewall script is rc.shorewall, which is being called from rc.inet2. My problem comes in when I actually enable rc.shorewall. Anything that runs after Shorewall is being silently skipped. This includes such important daemons as syslogd and sshd.

I've tried adding some "echo" and "sleep" commands to rc.inet2 and rc.shorewall to confirm my suspicion that execution isn't returning after Shorewall completes. I've also tried running rc.inet2 from the command line with the same results.

What could be causing this to happen? I would have thought that if there was a problem in one step, that wouldn't prefent execution from continuing. Additionally, is there any way to run a startup script with more verbose output to maybe catch the problem?

Thank you in advance to everyone.

Charles
 
Old 10-10-2005, 04:32 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Are you certain that rc.shorewall is actually ending? Is there a blank line at the end of the script? Try putting
Code:
exit 0
as the last line.
 
Old 10-11-2005, 01:23 AM   #3
charleswj
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
That's the problem: it's not ending. Well, to be clear it's more like it's short-circuiting somewhere. I get a login prompt and everything but anything in the boot process that would have happened after rc.shorewall never executes.

In rc.shorewall, I changed this line:
Code:
exec /sbin/shorewall -f start
to
Code:
echo "Before"; sleep 5
exec /sbin/shorewall -f start
echo "After"; sleep 5
I do get the "Before" but after the firewall scripts run, I get no other output including no "After". Complicating things further is the fact that this is a LiveCD-based firewall and the way it is structured doesn't let me modify or replace anything in /bin or /sbin.

Any ideas on what could cause the startup process to die early?
 
Old 10-11-2005, 01:45 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
exec will stop the script from further processing, remove exec and you're done
 
Old 10-11-2005, 03:47 PM   #5
charleswj
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks gbonvehi, that seems to have done the trick. I'll post again later with more details for posterity's sake.

Charles
 
  


Reply



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
Startup scripts MadnessASAP Linux - Software 2 12-15-2004 07:09 PM
Continuing a script on a new subshell dpillay Programming 2 05-29-2004 07:26 PM
Shorewall Startup Error sovietpower Slackware 4 05-25-2004 04:54 PM
startup scripts mimi Linux - Newbie 6 04-26-2002 03:09 AM
startup scripts mimi Linux - General 1 04-24-2002 03:22 AM

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

All times are GMT -5. The time now is 07:34 PM.

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
Open Source Consulting | Domain Registration