From b5a84dc4a655b4f9ed89ac0839dcc4cd24cac612 Mon Sep 17 00:00:00 2001 From: Fabian Franz BSc Date: Wed, 2 Oct 2024 11:28:05 +0200 Subject: [PATCH] Create ambedwatchdog --- scripts/ambedwatchdog | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/ambedwatchdog diff --git a/scripts/ambedwatchdog b/scripts/ambedwatchdog new file mode 100644 index 0000000..4953802 --- /dev/null +++ b/scripts/ambedwatchdog @@ -0,0 +1,5 @@ +#!/bin/sh +if journalctl -u ambed.service --since "5min ago" --grep 'Device .* is unresponsive'; then + systemctl restart ambed.service + systemctl restart xlxd.service +fi