/etc/cron.daily/goaccess
#!/bin/sh
goaccess
chmod +x /etc/cron.daily/goaccess
/etc/logrotate.d/nginx
/var/log/nginx/*.log {
weekly
missingok
rotate 2
compress
delaycompress
notifempty
create 0640 www-data adm
sharedscriptsfirstaction
/etc/cron.daily/goaccess
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi \
endscript
postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1
endscript
}