start-stop-daemon doesn't create a pid file for the application unless it's specifically instructed to with --make-pidfile and it won't fork a process into the background unless it's instructed to with --background, so the initscript doesn't know which process to stop, and installing it on systems that use initscripts cases apt to sit there forever, just running XD. I added the required options to the initscript to fix the issue. I also changed postinst to to generate the configuration files as the debian-xd user, so the directory doesn't need to be chown'ed in the postinstall script, which lintian complains about.
start-stop-daemon doesn't create a pid file for the application unless it's specifically instructed to with --make-pidfile and it won't fork a process into the background unless it's instructed to with --background, so the initscript doesn't know which process to stop, and installing it on systems that use initscripts cases apt to sit there forever, just running XD. I added the required options to the initscript to fix the issue. I also changed postinst to to generate the configuration files as the debian-xd user, so the directory doesn't need to be chown'ed in the postinstall script, which lintian complains about.