Bug #16789
closedrudder-agent v5.0.16 for debian 9 tries to use init.d instead of systemd
Description
Hello
While trying to update my agent to the last version before 6.0, I get a bug in the package on debian 9.
I am trying to update to the 5.0.16 through official package, and the debian 9 package tries to use init.d script instead of systemd unit:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Paramétrage de rudder-agent (5.0.16-debian9) ...
update-rc.d: error: initscript does not exist: /etc/init.d/rudder-agent
It seems it use update-rc.d to enable the agent at start instead of systemctl enable
Before this version, the agent worked perfectly with a systemd unit, which is still seen by the system:
# systemctl status rudder-
rudder-agent.service rudder-cf-execd.service rudder-cf-serverd.service
But not present anymore:
# systemctl status rudder-agent.service
Unit rudder-agent.service could not be found.
My best guess is something went wrong in the packaging, messing up with some debian 8 files, which still use init.d
Could it be possible to have a fix for this, in order to be able to upgrade properly to the last 5.0 before upgrading to 6, or upgrading to 6 should be possible even with the package broken?
Thanhs :)
Regards