LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   /etc/rc0.d-rcS.d ?? (https://www.linuxquestions.org/questions/debian-26/etc-rc0-d-rcs-d-171412/)

Wurstkoffer 04-17-2004 04:49 PM

/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 :)

avarus 04-17-2004 05:11 PM

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

Dead Parrot 04-17-2004 05:35 PM

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'.

Wurstkoffer 04-17-2004 06:36 PM

thx a lot, seems to work :)


All times are GMT -5. The time now is 08:18 AM.