logrotate: Multiple vulnerabilities
I want to make sure that a certain log file gets empty when it reaches a specific size. I first used logrotate since the man page says:
It will not modify a log multiple times in one day unless the criterium for that log is based on the log’s size.
Im currently running of ideas. The proftpd doesn't restart, if logrotate is triggered by the cron task. Logrotate rotates all logfiles stops proftpd but does not start proftpd again.
If i force the rotation with logrotate -f /etc/logrotate.d/proftpd-basic everything works fine..
Any kind of ideas are welcome.
I got the following setup.