LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Is there something like rc.local for system initialisation? (http://www.linuxquestions.org/questions/debian-26/is-there-something-like-rc-local-for-system-initialisation-136542/)

brian-e 01-19-2004 08:12 PM

Is there something like rc.local for system initialisation?
 
Is there something like /etc/rc.local for putting things in like hdparm for drives and echo 1 > /proc/sys/net/ipv4/ip_forward to turn on forwarding, those sorts of things? What's the "proper Debian Way" of doing this?

Strike 01-20-2004 12:54 AM

well, hdparm stuff goes in /etc/hdparm.conf and the ip_forward setting is in /etc/network/options :)

brian-e 01-20-2004 01:30 AM

Here is the answer:

You need the initscripts package. This gives you /etc/hdparm.conf, where you can set parameters like turning on DMA for your hardrives. It also gives you /etc/sysctl.conf, where you can set kernel parameters.

Strike 01-20-2004 07:56 AM

Actually, /etc/sysctl.conf comes with procps (do a dpkg -S /etc/sysctl.conf if you don't believe me). But I still think that it should go in /etc/network/options instead as there is already a setting for it there and I'm not sure which would get applied first. Oh, and /etc/hdparm.conf comes with hdparm itself as well (again, dpkg -S if you don't believe me).


All times are GMT -5. The time now is 03:23 PM.