diff --git a/scripts/services b/scripts/services index 042b2e58..6673d1af 100755 --- a/scripts/services +++ b/scripts/services @@ -145,6 +145,10 @@ systemd_daemon_reload_preset() { log_debug "Running: systemctl daemon-reload 2>&1 || true" systemctl daemon-reload 2>&1 || true + log_debug "Removing any broken systemd service symlink" + find -L /etc/systemd/system -type l \ + | xargs -r rm + log_debug "systemd needs preset-all to enable/disable services (to start them on boot)" log_debug "Running: rm -rf /etc/systemd/system/*.wants/ || true" rm -rf /etc/systemd/system/*.wants/ || true