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