Merge pull request #323 from femtofox/OSC

Watchclock Dog checks if meshtasticd is running
This commit is contained in:
noon92 2025-02-13 23:30:39 +02:00 • committed by GitHub
commit 9882d3e0d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,12 @@ if [ ! -w "$LAST_TIME_FILE" ]; then
fi
while true; do
# Check if meshtasticd service is running
if ! systemctl is-active --quiet meshtasticd; then
#echo "meshtasticd service is not running. Skipping..." | tee -a "$LOGFILE"
sleep 30
continue
fi
NEW_TIME=$(date +%s)
# Ensure last_time file is readable before using it
@ -47,6 +53,6 @@ while true; do
exit 1
fi
sleep 5
sleep 30
done