Create ambedwatchdog

This commit is contained in:
Fabian Franz BSc 2024-10-02 11:28:05 +02:00 committed by GitHub
parent 44893d2f21
commit b5a84dc4a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
scripts/ambedwatchdog Normal file
View file

@ -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