Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add a service to the startup on my server. How do I do that?

share|improve this question
up vote 3 down vote accepted

update-rc.d servicename defaults

See also How-To: Managing services with update-rc.d

share|improve this answer

chkconfig [--level levels] service on

ex

chkconfig --level 3,5 httpd on

EDIT : If you don't specify run levels the service will run on all run levels

ie chkconfig httpd on

share|improve this answer
    
That would work for Red Hat based distros, for Ubuntu, best checking the ubuntu forums, things change depending on the version etc: ubuntuforums.org/showthread.php?t=212631 – Grizly Aug 20 '10 at 1:01
    
:-\ ..... what are run levels? – Webnet Aug 20 '10 at 3:48
    
en.wikipedia.org/wiki/Runlevel – DKNUCKLES Aug 20 '10 at 16:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.