On Mon, 11 Aug 2003
Robert.Wultsch@asu.edu wrote:
> ok... I created the file at /etc/init.d/rc.firewall, now why would I create a
> sym link (forgive my ignorance), my understanding is that a sym link is the
> sort of the equivilant of a shortcut in windows.
>
> Shouldn't I just add a line to a script that is run at startup so that the
> above gets run?
There is already a script for running the shell (startup) scripts for your
runlevel.
> Or if being everything in that folder gets executed at start up then my not
> just put /etc/init.d/rc.firewall in/etc/rc2.d/rc.firewall?
Have a look at the examples already on your system.
The real scripts go in /etc/init.d/ and the startup (and shutdown)
symlinks go in /etc/rc[0-6S].d/ directories.
Look at /etc/init.d/README, /etc/inittab, and the /etc/init.d/rc script.
Also look at your update-rc.d(8), runlevel, init(8), and inittab(5) manual
pages. (On a Red Hat box, also look at chkconfig and tksysv and others.)
(Next month, I am teaching a lecture at the Greater Seattle Linux User
Group about "Linux boot scripts". This is exactly what I'll be covering.)
Jeremy C. Reed
http://bsd.reedmedia.net/