From fbd2176b85c5e34c8a3c42cbebfb8e825260c604 Mon Sep 17 00:00:00 2001 From: SamNet-dev Date: Sat, 31 Jan 2026 12:33:36 -0600 Subject: [PATCH] Fix service inactive on dashboard after restart and update Sync systemd service state after container restart so dashboard shows Active. Patch conduit.service during update for existing snap Docker users. --- conduit.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conduit.sh b/conduit.sh index 79b8306..275f50c 100644 --- a/conduit.sh +++ b/conduit.sh @@ -2882,6 +2882,10 @@ restart_conduit() { fi # Regenerate tracker script and ensure service is running setup_tracker_service 2>/dev/null || true + # Sync systemd service state so dashboard shows "active" + if command -v systemctl &>/dev/null && systemctl is-enabled conduit.service &>/dev/null; then + systemctl restart conduit.service 2>/dev/null || true + fi } change_settings() { @@ -6551,6 +6555,11 @@ main() { echo -e "${RED}Failed to update management script${NC}" exit 1 fi + # Fix conduit.service: replace hard docker dependency for snap installs + if [ -f /etc/systemd/system/conduit.service ] && grep -q "Requires=docker.service" /etc/systemd/system/conduit.service 2>/dev/null; then + sed -i 's/Requires=docker.service/Wants=docker.service/g' /etc/systemd/system/conduit.service + systemctl daemon-reload 2>/dev/null || true + fi setup_tracker_service 2>/dev/null || true if [ "$TELEGRAM_ENABLED" = "true" ]; then telegram_generate_notify_script 2>/dev/null || true