init script is not getting installed to /etc/init.d

From dh_installinit(1):

If a file named debian/package.init exists, then it is installed into etc/init.d/package in the package build directory, with "package" replaced by the package name.

If a file named debian/package.default exists, then it is installed into etc/default/package in the package build directory, with "package" replaced by the package name.


Found this:

The /etc/init.d scripts must be treated as configuration files, either (if they are present in the package, that is, in the .deb file) by marking them as conffiles, or, (if they do not exist in the .deb) by managing them correctly in the maintainer scripts (see Configuration files, Section 10.7). This is important since we want to give the local system administrator the chance to adapt the scripts to the local system, e.g., to disable a service without de-installing the package, or to specify some special command line options when starting a service, while making sure their changes aren't lost during the next package upgrade

In http://www.debian.org/doc/debian-policy/ch-opersys.html

Here's the docs on using conffiles

http://www.debian.org/doc/manuals/maint-guide/ch-dother.en.html#s-conffiles