U
U
unlik2015-03-19 23:51:23
Debian
unlik, 2015-03-19 23:51:23

debian logrotate not working?

Logrotate is installed on debian
In the file /etc/logrotate.d/apache2 I registered the config
/home/user1/site/logs/*.log
{
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 root user1 www-data
sharedscripts
prerotate
if [ -d / etc/logrotate.d/httpd-prerotate]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
}
But the logs are still endlessly written to one file. What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
moropsk, 2018-05-29
@moropsk

There was a similar garbage with large syslog sizes on Debian 8.10 (guest OS on Proxmox)
The standard config is specified in logrotate.
Updated to Debian 9.4 the problem does not appear yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question