LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-04-2003, 06:28 PM   #1
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
How to auto-start services on boot?


I want my box to boot up with snmpd and snmptrapd running from power-on. How would I go about doing this?

I think I need to do something in the rc.d direcotries somewhere and add a symbolic link for the services that I want to start, so the init process starts them..... but I'm not sure and was hoping someone could point me in the right direction.
 
Old 11-04-2003, 07:05 PM   #2
kasperhans
Member
 
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
put it into your /etc/rc.d/rc.local file and it will start up during boot
 
Old 11-04-2003, 07:51 PM   #3
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
What distribution do you use? At least some(most?) include various utilities to make this easier than manually mucking around with symlinks in /etc/rc.d/* directories. It doesn't hurt to do that at least once though to help fully understand the structure and layout of how the average Linux machine does this.

On RedHat for instance though, there are graphical utilities to enable/disable "services", there is "ntsysv", there is chkconfig, etc...

# chkconfig snmpd --list
# chkconfig snmpd on
 
Old 11-04-2003, 08:08 PM   #4
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Original Poster
Rep: Reputation: 15
I'm toying with the rc.local file. That seems to do the job ok. Just gotta make sure that I don't run a program (like snmptrapd) with output to stderr, otherwise the init process jams up waiting for it to finish, which it doesn't do.
 
Old 11-05-2003, 04:52 AM   #5
kasperhans
Member
 
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
hehe you will get it soon learning by doing but be sure to have a rescue disc if you work with the init files
 
  


Reply

Tags
autostart, boot


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 09:10 AM
Auto start https at boot time. fareen Linux - Newbie 1 08-14-2005 10:25 PM
Adding an application to auto-start on boot-time dushkinup Linux - Newbie 4 03-07-2004 07:55 PM
how to auto start services at startup in debian? legolin Debian 3 12-28-2003 10:02 AM
NFS Services do not start at Boot up nishi_k_79 Linux - Networking 4 10-02-2003 07:18 AM


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