Project

General

Profile

Actions

Bug #13174

closed

can't upgrade debian package if /bin/systemd exist but sysv is used

Added by tim c over 5 years ago. Updated over 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
78
Name check:
Fix check:
Regression:

Description

Hi,

During upgrade rudder-agent.postinst check if systemd is used. Code below is the part in question :

if type systemctl > /dev/null ; then CFRUDDER_USE_SYSTEMD="true"; fi

But it's possible to have the binary /bin/systemctl and used sysv instead of systemd, specially when you have upgraded your system from debian 7 to debian 8.

Proposed solution:

pidof systemd >/dev/null 2>&1 ; then CFRUDDER_USE_SYSTEMD="true"; fi

Workaround :

mv /bin/systemctl{,.bak}
upgrade...
mv /bin/systemctl.bak /bin/systemctl

Actions

Also available in: Atom PDF