LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Script that runs on startup (https://www.linuxquestions.org/questions/ubuntu-63/script-that-runs-on-startup-460238/)

spank 07-02-2006 06:52 AM

Script that runs on startup
 
Hello!

I want to know where can i find a script that executes on startup on ubuntu 6.06. Something like /etc/rc.d/rc.local on Red Hat, where I can do a masquerade and run some apps. :) Thank you!

Ephracis 07-02-2006 07:01 AM

Ubuntu is debian based so afaik it uses the same startup scripts as debian. That means that /etc/init.d/ contains all scripts that should be executed at boot/shutdown.

But after putting your script there you need to symlink it to /etc/rcX.d/ where X is the runlevel (or S for startup).

The name of the symlink should be something like SXXblah, where S is for start (or K for shutdown/reboot (lies in runlevel 0 and 6)) and where XX is the number used to determine when it should be run.

For more info do a search for "debian startup scripts".

Regards.

fragos 07-02-2006 06:54 PM

Check out System-> Preferences-> Sessions-> (tab)Startup Programs. This is about starting the level 6 for a particular user. It has advantages since all the kernel related things are started -- e.g. network access to the web. There are things that need to start at lower levels but level 6 usually works well for most user needs.

jayn16 07-04-2006 11:56 AM

You can find rc.local and rc files in /etc/init.d


All times are GMT -5. The time now is 09:52 AM.