Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-17-2004, 05:49 PM   #1
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, 06:11 PM   #2
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
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.

Old 04-17-2004, 06: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 06:39 PM.
Old 04-17-2004, 07:36 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 5

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


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

All times are GMT -5. The time now is 05:19 PM.

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