Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 11-28-2008, 01:13 AM   #1
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/ ? Or what file is it?
Old 11-28-2008, 06:00 AM   #2
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?
Old 11-28-2008, 07:44 AM   #3
Registered: Oct 2005
Location: Finland
Distribution: Debian Lenny
Posts: 32

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

# /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
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
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


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 10:10 PM.

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