1

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.

0

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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