rudder-cf-execd and rudder-cf-serverd are not enabled nor running after a server install on debian 8
I tried to install a 4.3 nightly on debian8, update the agent was not possible since rudder-cf-execd and rudder-cf-serverd were not running.
Most likely a problem in the postinstall, which should execute "/bin/systemctl enable rudder-agent rudder-cf-execd rudder-cf-serverd" but does not.
I did not try on any other version with a debian8.
#2 Updated by Félix DALLIDET about 1 month ago
- Status changed from In progress to New
- Assignee deleted (
This come from a wrong detection of systemd during the postinstall.
We detect it with:
if grep -q systemd /proc/1/cmdline > /dev/null ; then CFRUDDER_USE_SYSTEMD=1; fi
But if I check what is in this "folder":
root@server:/var/cache/apt/archives/tmp/DEBIAN# cat /proc/1/cmdline
root@server:/var/cache/apt/archives/tmp/DEBIAN# ls -l /sbin/init
lrwxrwxrwx 1 root root 20 Apr 8 2017 /sbin/init -> /lib/systemd/systemd
There is a path to a symlink so it does not appear in the grep. We should traverse the path before doing anything.
#4 Updated by Alexis MOUSSET about 1 month ago
- Status changed from New to Pending technical review
- Assignee changed from Alexis MOUSSET to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/1707
#5 Updated by Alexis MOUSSET about 1 month ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|19e24ec6d73d03889353a9fd02216a06941e6e92.