Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm trying to create a package which contains the init.d file, but doesn't try to start the daemon right after the installation.

Currently, I'm using scripts created from the dh_make template. Right after installation, dpkg wants to start the service. I'd like to stop it from doing that - the daemon will be always started / stopped manually.

share|improve this question
up vote 0 down vote accepted

In the rules file, change dh_installinit to run with the -n option which doesn't modify the postinst and postrm automatically. You will need to do update-rc.d yourself to create the rc links though.

share|improve this answer

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.