Comment 9 for bug 1505088

Revision history for this message
Frédéric Bonnard (frediz) wrote :

Here is a patch.
Some comments :
- the Makefile installed the systemd unit files in the wrong system unit directory, so they were not detected and not enabled/started with dh_installinit so I did a small debian/patch.
- then once, the path is fixed the call to invoke-rc.d in the generated postinst did not start the daemons because "We never start disabled jobs;"(cf invoke-rc.d code) and we need to enable the daemons in the post-installation. I couldn't do it with "update-rc.d enable" in the configure step of the postinst script as "update-rc.d defaults" needs to be done before... So I used dh_systemd which uses dh_systemd_enable and dh_systemd_start.
I worked here.
Please review, thanks!