Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.