Add "cleanup" parameter

- a section for future automated cleanup tasks.
- add cleanup to the .cron file
- add cleaning "Online_History" exept the last 1 day
This commit is contained in:
leiweibau
2022-08-03 18:48:12 +02:00
parent 79b6e6ff22
commit dffca5e619
2 changed files with 24 additions and 1 deletions

View File

@@ -11,3 +11,4 @@
*/3 * * * * python ~/pialert/back/pialert.py internet_IP >~/pialert/log/pialert.IP.log 2>&1
*/5 * * * * python ~/pialert/back/pialert.py 1 >~/pialert/log/pialert.1.log 2>&1
#*/15 * * * * python ~/pialert/back/pialert.py 15 >~/pialert/log/pialert.15.log 2>&1
0 3 * * 1 python ~/pialert/back/pialert.py cleanup >~/pialert/log/pialert.1.log 2>&1