LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-07-2010, 06:24 PM   #1
fluffymuffins
LQ Newbie
 
Registered: Aug 2010
Distribution: debian lenny / arch linux
Posts: 7

Rep: Reputation: 0
Question autorun programs at boot, not just login: dhclient, /etc/init.d/isc-dhcp3server, etc.


I would like to, during boot, automatically load dhclient, dhcp3, aptitude update, aptitude autoclean, squid, and possibly a few others. i do not know how to modify the boot list and was wondering if i could get help in that regard. the reason i want to run these programs at boot and not login is because i would like to login with my server programs and full cluster running and all nodes to wake on lan automatically (which has been set up), so i don't have to bother with starting everything manually. also so i do not have to be logged in to serve my clients.
 
Old 09-07-2010, 07:17 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You'll need to create a small Bash script that starts each service and put that in the /etc/rc2.d directory as a sym-link from /etc/init.d Read the README file in the latter for further info.
 
Old 09-08-2010, 12:46 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
- dhclient
configured in /etc/network/interfaces
Eg. If you have a line like
Code:
iface eth0 inet dhcp
Add the line
Code:
auto eth0
- dhcp3
I'm assuming you mean the server, you may just need to edit your /etc/default/isc-dhcp-server
and list the interfaces you want it to listen on.
Additionally you may need to create the S symlink in rc2.d. You can use a tool like rcconf to do this.

- aptitude update, aptitude autoclean
You could hack this manually as suggested buy Dutch Master...

- squid
AFAIK this should start automatically. If it is not check the rc2.d symlinks (again you can use rcconf) and perhaps /usr/share/doc/squid/README.Debian.gz or similar.

- possibly a few others.
Check the documentaion that comes with the package (/usr/share/doc/packagename), in particular the README.Debian.gz file if it exists. This is the first place you should look for configuration info on any package you install. Also don't forget to check the symlinks in the rc2.d directory.


Cheers,

Evo2.

Last edited by evo2; 09-08-2010 at 12:51 AM. Reason: s/dhcp-server/isc-dhcp-server + more generic info
 
Old 09-08-2010, 02:04 PM   #4
fluffymuffins
LQ Newbie
 
Registered: Aug 2010
Distribution: debian lenny / arch linux
Posts: 7

Original Poster
Rep: Reputation: 0
i made the link in rc.d directory, and now dhclient and dhcp3-server start correctly at boot. You were correct about squid. it does start automatically. I will not bother with aptitude. I can update the sources manually. thanks.
 
  


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
how to autorun programs from cdrom? holmes86 Linux - Desktop 2 03-16-2009 05:48 AM
dhclient causes programs not to start adamis Linux - Networking 0 10-20-2004 04:54 PM
init on boot programs that need env vars The_Spider Linux - General 3 04-29-2004 07:30 AM

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

All times are GMT -5. The time now is 06:24 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