From fcad095e73fa6ffe88fa5a6479a010f8b1b826b0 Mon Sep 17 00:00:00 2001 From: Andrew Battat <113942931+andrewbattat@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:20:44 -0500 Subject: [PATCH] fix: verbose logging service file failure (#1858) When the verbose flag is not enabled, verbose-logging.sh exits immediately, but the service file was set to restart causing it to restart over and over again. After several rapid restarts, systemd marks the service as failed to prevent a restart loop. Pasted Graphic 6 This changes the service to only restart on failure --- .../hostos-scripts/verbose-logging/verbose-logging.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ic-os/components/hostos-scripts/verbose-logging/verbose-logging.service b/ic-os/components/hostos-scripts/verbose-logging/verbose-logging.service index 5fbc3e6d2c0..ce22f7579cd 100644 --- a/ic-os/components/hostos-scripts/verbose-logging/verbose-logging.service +++ b/ic-os/components/hostos-scripts/verbose-logging/verbose-logging.service @@ -5,7 +5,7 @@ After=guestos.service [Service] ExecStart=/opt/ic/bin/verbose-logging.sh -Restart=always +Restart=on-failure [Install] WantedBy=multi-user.target