Bug #13774
closedrudder-cf-execd and rudder-cf-serverd are not enabled nor running after a server install on debian 8
Description
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.
Updated by Alexis Mousset about 6 years ago
- Status changed from New to In progress
- Assignee set to Alexis Mousset
Updated by Félix DALLIDET about 6 years ago
- Status changed from In progress to New
- Assignee deleted (
Alexis Mousset)
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
/sbin/init
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.
Updated by Alexis Mousset about 6 years 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
Updated by Alexis Mousset about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|19e24ec6d73d03889353a9fd02216a06941e6e92.
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released