readme updated to include watchdog
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user