LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-02-2006, 06:52 AM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
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!
 
Old 07-02-2006, 07:01 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
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.

Last edited by Ephracis; 07-02-2006 at 07:05 AM.
 
Old 07-02-2006, 06:54 PM   #3
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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.
 
Old 07-04-2006, 11:56 AM   #4
jayn16
LQ Newbie
 
Registered: May 2006
Location: Pune, India
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
You can find rc.local and rc files in /etc/init.d
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logout after script runs bigdog0007 Linux - Newbie 6 06-24-2005 05:42 PM
what shell script runs only at bootup/startup pwhitey86 Mandriva 2 12-22-2004 10:13 PM
how do I make httpd a process that runs on startup Belkorin Linux - Software 4 07-09-2004 02:32 PM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM
Where can I the script that runs the forum? patpawlowski LQ Suggestions & Feedback 5 03-17-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration