From 372aa09b0c71784e7ba676e29f38d27d78336599 Mon Sep 17 00:00:00 2001 From: suchirss Date: Sun, 16 Nov 2025 20:35:25 -0800 Subject: [PATCH 1/2] changed thunderloop service to restart on failure and to be throttled by 0.5 seconds on restart --- .../embedded/linux_configs/systemd/thunderloop.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/software/embedded/linux_configs/systemd/thunderloop.service b/src/software/embedded/linux_configs/systemd/thunderloop.service index 2cc91ddaac..6ed42ad38f 100644 --- a/src/software/embedded/linux_configs/systemd/thunderloop.service +++ b/src/software/embedded/linux_configs/systemd/thunderloop.service @@ -15,7 +15,8 @@ ExecStart=/home/robot/thunderbots_binaries/thunderloop_main TimeoutStopSec=15s # Always restart on crash -Restart=always +Restart=on-failure +RestartSec=0.5 [Install] # This unit should be run at startup From d4bec3fc07426bcd27b570021c487459267b6038 Mon Sep 17 00:00:00 2001 From: suchirss Date: Sun, 16 Nov 2025 21:37:23 -0800 Subject: [PATCH 2/2] Changed thunderloop service to start running after pi starts connecting to network. Previously started running after already connected to network. --- .../embedded/linux_configs/systemd/thunderloop.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/software/embedded/linux_configs/systemd/thunderloop.service b/src/software/embedded/linux_configs/systemd/thunderloop.service index 6ed42ad38f..7e6baf6dca 100644 --- a/src/software/embedded/linux_configs/systemd/thunderloop.service +++ b/src/software/embedded/linux_configs/systemd/thunderloop.service @@ -5,8 +5,8 @@ Description=thunderloop service PartOf=thunderbots.service # At startup, start this unit after the thunderbots.service start -After=thunderbots.service network.target network-online.target -Wants=network-online.target +After=thunderbots.service network.target +Wants=thunderbots.service [Service] ExecStart=/home/robot/thunderbots_binaries/thunderloop_main