TT#35912 systemd does not always cleanup .wants/ relationships by itself

Remove any stale .wants/ relationships as systemd does not always seem
to be able to cleanup those by itself. This makes sure we always start
from a clean slate.

Change-Id: I1b241d4530c45658b7245cdbca33e34dde5beaf6
changes/02/20802/2
Guillem Jover 8 years ago
parent 6da220e9ac
commit 3e7c22ca3a

@ -133,7 +133,9 @@ if [ -d "/run/systemd/system" ]; then
log_debug "Running: systemctl daemon-reload 2>&1 || true"
systemctl daemon-reload 2>&1 || true
log_debug "systemd needs reset-all to enable/disabe services (to start them on boot)"
log_debug "systemd needs preset-all to enable/disabe services (to start them on boot)"
log_debug "Running: rm -rf /etc/systemd/system/*.wants/ || true"
rm -rf /etc/systemd/system/*.wants/ || true
log_debug "Running: systemctl preset-all 2>&1 || true"
systemctl preset-all 2>&1 || true
fi

Loading…
Cancel
Save