/etc/rc.d holds initialization files for the various runlevels, actually scripts that run when you switch runlevel.... and a "placeholder" for scripts which might be relevant to the local machine, which is called rc.local. Perhaps that will help you se the logic.
Since runlevel 3 and runllevel 5 are the most frequently used for working with your system, we'll concentrate on those differences. There may be certain features you would want to run only in graphics mode. Those would have a startline in rc.5d , but not in rc.3d.
the /etc/rc.d directory is not the only place you can start up things, just one of many. It corresponds perhaps to the Start-Up of windows95/98 plus the autoexec.bat of dos. Linux provides places to make things happen for various events, such as ppp starting or disconnecting, or a particular shell being started (you have ONLY the DOS shell in stock win95/98 though you can buy some others, but probably not from Bill) The location of the Startup folder in Windows is just about as arcane, when you actually write out the path
c:\windows\start menu\programs\startup
Of course there is no equivalent at all for single user customization except with the new, improved, ethereal, vaporware called Windows 2000. With Linux you have /home/username/.bashrc for command-line customization and the wonderful autostart folder on the desktop, not buried under six double-clicks as it is in Billy's world.
Civileme
Alan Schussman wrote:
This is a sort of peripheral question. I've used unix for several years --
lots of use in college, until I graduated, anyway -- but that path/file
has got to be about the most arcane thing I've ever seen. Yes, I'm new to
linux and actually getting behind the scenes of a *nix box, but is there
rhyme or reason to that convention? Relatedly, is there any kind of
reference that lists those "standard" unix system files and explains their
purpose? That would go a long way in helping me feel like I really have a
handle on what I'm doing.-Alan
On Sat, 17 Jul 1999, Marc Indekeu wrote:
> /etc/rc.d/rc.local can be used for that purpose. It gets executed when linux boots.
>
> later
> -----Oorspronkelijk bericht-----
> Van: Lei Tie <[EMAIL PROTECTED]>
> Aan: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Datum: zaterdag 17 juli 1999 19:14
> Onderwerp: [newbie] Linux Startup Programs
>
>
> Hi, if i want to make linux to start a program automatically when it boots, what file should I modify? Let's just say that my file is /sbin/file, where do I add this line of command?
> thank you.
>-alan
| note my new non-Whitman email address: [EMAIL PROTECTED] |
| Bye-bye Whitman; I'll be writing from U of Arizona in August! |
-- Civileme Say: "One who buys dual scan display soon gains Optometrist for best friend."
