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.

link|improve this question

64% accept rate
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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