What are the scripts accessed by the computer when linux starts up?
I would like to know the location of the files that linux uses when it starts up.
L.E. I would prefer for the ubuntu version. Even more speciffic: Can you tell me if it is among either of those files? /etc/startup /etc/bash/startup ~/.start.rc ~/.profile /etc/profile |
That depends on the distribution you use. Some use the System V init system, like Debian. Those store the scripts usually in /etc/init.d.
Other distros use a more BSD like init system, like Slackware, which is storing the scripts in /etc/rc.d. Ubuntu and derived distros usually use Upstart as init system, I don't know where it stores the scripts. Fedora uses Systemd, which has its modules written in C, as far as I know. |
Quote:
|
I don't really know anything about upstart, but it seems that the scripts are also on /etc/init.d:
http://upstart.ubuntu.com/getting-started.html However, the correct way of changing this sort of thing often is not just creating a script and placing it there, it has to be "installed" through some command. On sysv (debian and some others) it is "update-rc.d", on upstart I don't know. But this link I gave seems to have these instructions. These files you've listed, if/when they exist, they may be used at some later point on the startup anyway. But there will be quite a bit of stuff that happens before these are executed, if/when they are. |
if you want to add something to startup i would edit this file (e.g.-):
Code:
xbmc@XBMCLive:~/win/stuff/clips$ cat /etc/rc.local |
All times are GMT -5. The time now is 05:03 PM. |