LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-28-2008, 01:13 AM   #1
Grimmi-
Member
 
Registered: Oct 2005
Location: Finland
Distribution: Debian Lenny
Posts: 32

Rep: Reputation: 15
Running programs on boot - Lenny 2.6.26-1 kernel


Ok, so I was going trough some thinking, and I started to wonder if I want to run a script on startup, where do I add the info about it?

Is it in /etc/init.d/bootmisc.sh ? Or what file is it?
 
Old 11-28-2008, 06:00 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Is it /etc/rc.d/rc.local ? And just add the path to the script?

http://www.linuxquestions.org/questi...tartup-294891/
 
Old 11-28-2008, 07:44 AM   #3
Grimmi-
Member
 
Registered: Oct 2005
Location: Finland
Distribution: Debian Lenny
Posts: 32

Original Poster
Rep: Reputation: 15
I don't have /etc/rc.d/rc.local

Code:
# /etc/rc
rc0.d/    rc1.d/    rc2.d/    rc3.d/    rc4.d/    rc5.d/    rc6.d/    rc.local  rcS.d/
Got those, so I should edit the rc.local file in /etc/rc.local ?
 
Old 11-28-2008, 07:50 AM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
so I should edit the rc.local file in /etc/rc.local
Yes. Put your commands in that file, before the final exit 0
Remember, they'll be executed as the root user, not yourself, and you may need to specify the /full/pathname/to/the/command
 
  


Reply

Tags
boot, startup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
failed to mount /root on boot after upgrade to lenny: boot hangs MrInept Debian 7 10-29-2008 10:21 AM
DHCP not running at boot up after upgrading to Lenny virve Debian 1 10-13-2008 08:35 PM
Running Opera in Debian Lenny on AMD-64 jlinkels Linux - Software 1 05-07-2008 06:00 AM
Installing 32bit programs on amd64 (lenny) war1025 Debian 2 03-29-2008 02:28 PM
Running programs on boot Xzi Linux - General 2 09-12-2007 12:29 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration