readme updated to include watchdog

This commit is contained in:
moo
2022-06-24 21:23:57 +02:00
parent a95a4f73e6
commit 74c51875c6
5 changed files with 171 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ Erweitert von Peter (pet@fet.at)
Läuft auf einem raspberry pi, mit einem PN532 über I2C verbunden.
Der Watchdog ist sehr simpel und prüft nur ob das Python-Skript noch antwortet. Wenn der Raspi abgesteckt wird, kein Internet mehr hat, oder etwas anderes schief läuft versagt das.
###Setup
@@ -18,10 +20,12 @@ Braucht folgende sachen im "sudo crontab -e":
```
0 1 * * * sudo reboot #reboot the machine every day at 01:00
* * * * * sudo python /home/zutritt/Documents/sarah/sarah_crontab_sytem_functions.py #open the system functions once a minute, to check if we need to reboot
* * * * * sudo python /home/zutritt/Documents/sarah/sarah_crontab_sytem_functions.py #open the system functions once a minute, to check if we need to reboot:
*/5 * * * * sudo python /home/zutritt/Documents/sarah/src/sarahs_watchdog.py > /home/zutritt/logs/cronlog_watchdog 2>&1 #run the watchdog once every 5 minutes to chekc if sarah is online
@reboot sh /home/zutritt/launcher.sh > /home/zutritt/logs/cronlog 2>&1
```