(02-24-2016, 10:13 AM)barreiras Wrote: I just made some ajustments for ubuntu on the sentora-apache it was just needed to replace the postrotate for adapting to ubuntu's service
Code:/var/sentora/logs/domains/*/*access.log /var/sentora/logs/domains/*/*error.log /var/sentora/logs/zpanel.log /var/sentora/logs/sentora*.log /var/sentora/logs/daemon*.log {
weekly
missingok
rotate 5
compress
delaycompress
create 640 root adm
sharedscripts
postrotate
service apache2 reload > /dev/null
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}
For Debain and Ubuntu also look into the create line, they may use other permissions.