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

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

share|improve this question

2 Answers 2

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


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: – Grizly Aug 20 '10 at 1:01
:-\ ..... what are run levels? – Webnet Aug 20 '10 at 3:48 – DKNUCKLES Aug 20 '10 at 16:03

Your Answer


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.