LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-17-2004, 04:49 PM   #1
Wurstkoffer
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
/etc/rc0.d-rcS.d ??


i'm currently on the task of building myself a debian based router and the tutorial i followed wants me to create a file /etc/rc.d/rc.firewall-2.4, too bad i don't have rc.d only rc0.d-rcS.d. Could someone explain me the difference and tell where to put it?
Thx in Advance
 
Old 04-17-2004, 05:11 PM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 32
Hi - I'm not a Debianite but at a guess, maybe the tutorial means to put the file in /etc/init.d. AFAIK all the startup scripts should live there.

TIM
 
Old 04-17-2004, 05:35 PM   #3
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Yup, avarus is right. Place your firewall script in /etc/init.d/rc.firewall-2.4. Then do (as root) 'update-rc.d rc.firewall-2.4 defaults'. This will create the default symlinks that will start your firewall when system is started and stop it when you reboot or halt the system.

Or, you can do something like 'update-rc.d rc.firewall-2.4 start 40 2 3 4 5 . stop 40 0 1 6 .', which will do the same thing, except you've now named the symlinks that start the firewall S40rc.firewall-2.4 (and those that stop the firewall K40rc.firewall-2.4).

Debian uses runlevels 2-5 for normal multi-user modes, runlevel 0 for halt, runlevel 1 for single-user mode, and runlevel 6 for reboot. Services for these runlevels are configured as symlinks in /etc/rc[0-6].d/. All these symlinks point to scripts in /etc/init.d/.

For more info, see 'man update-rc.d'.

Last edited by Dead Parrot; 04-17-2004 at 05:39 PM.
 
Old 04-17-2004, 06:36 PM   #4
Wurstkoffer
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
thx a lot, seems to work
 
  


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
install vmware/need rc0.d master Linux - Software 5 12-10-2004 07:02 PM
RCS best practice? jonin Linux - Software 1 09-30-2004 05:54 PM
RCS and CVS which to use for configs? Dark_Helmet Linux - Software 0 06-29-2003 12:53 AM
Halt fails in rc0! schadwell Linux - General 0 04-27-2003 12:32 AM
The rc0.d and rc6.d files are located were?!? bripage Linux - General 6 07-24-2002 10:39 AM


All times are GMT -5. The time now is 11:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration