Skip to content
Snippets Groups Projects
Commit b41dfdd6 authored by Marius Cramer's avatar Marius Cramer
Browse files

Cron log should always be rotated, not depending on size

parent da0a8173
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class cronjob_logfiles extends cronjob {
}
// compress current logfile
if(is_file($cron_logfile) && filesize($cron_logfile) > 10000000) {
if(is_file($cron_logfile)) {
exec("gzip -c $cron_logfile > $cron_logfile.1.gz");
exec("cat /dev/null > $cron_logfile");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment