majestrate / XD

meme bittorrent client
https://xd-torrent.github.io/
MIT License
238 stars 25 forks source link

Fixing the initscript mostly #73

Closed eyedeekay closed 5 years ago

eyedeekay commented 5 years ago

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.

r4sas commented 5 years ago

sudo is not installed everywhere, so that is bad solution.

majestrate commented 5 years ago

try using su instead of sudo

eyedeekay commented 5 years ago

Ok