deluge: Cleanup and simplify setup code
-
Use various action utilities to simplify daemon management.
-
Instead of writing systemd service file to /etc ship an override file in /usr/lib/systemd/system/*.d/. deluged and deluge-web both have systemd unit file shipped. They are very close to what we want from them. Drop the old service file.
-
Don't write /etc/default/deluged, it is not used in the systemd unit file.
-
App's setup version has not been incremented as it has already been incremented for the next release.
Tests:
-
Fresh install of the app works in testing container. Functional tests work as expected.
-
/var/lib/deluged/config/web.conf is created when deluge-web is started confirming that the correct configuration path is being used. Also app works on /deluge web path.
-
Old systemd unit file is removed when the setup is run when it is present to due to deluge installation attempt previously.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org