diff --git a/README.md b/README.md index 3a09227..61b7471 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/logrotate.d/twitupd b/logrotate.d/twitupd new file mode 100644 index 0000000..1c8566d --- /dev/null +++ b/logrotate.d/twitupd @@ -0,0 +1,9 @@ +/mystic/logs/twitupd.log { + daily + rotate 7 + compress + delaycompress + missingok + notifempty + create 644 root root +}