mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
Create ambedwatchdog
This commit is contained in:
parent
44893d2f21
commit
b5a84dc4a6
5
scripts/ambedwatchdog
Normal file
5
scripts/ambedwatchdog
Normal 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
|
||||||
Loading…
Reference in a new issue