Fri 9 Dec 09:13:42 GMT 2022

This commit is contained in:
MeaTLoTioN 2022-12-09 09:13:42 +00:00
commit 88768a5c8f
2 changed files with 13 additions and 0 deletions

View File

@ -7,3 +7,7 @@ using crontab, you could set it up thus;
```
0 0 * * * /mystic/scripts/twitupd.sh && logger -t "mystic_twitupd.sh" "[crontab] blacklist.txt updated"
```
## recommended logrotate config
in the directory `logrotate.d` there's a file called twitupd which is a suggested basic log rotation config
if you change the mystic dirs in the main twitupd.sh, make sure to change the log file location in the logrotate.d config too

9
logrotate.d/twitupd Normal file
View File

@ -0,0 +1,9 @@
/mystic/logs/twitupd.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 root root
}