CARLI / web-reports

Web Reports Web Based Reporting Tool
2 stars 0 forks source link

logrotate needs option #126

Closed patrickzurek closed 7 years ago

patrickzurek commented 7 years ago

The logrotate configuration for web-reports was missing a configuration option, it should include the 'su' directive with user + group to write the file as. I noticed the omission when I tried to force a log rotation using logrotate --force /etc/logrotate.d/web-reports logrotate complained that the log directory was not owned by root and this option was needed.

I added the line su celery celery to both stanzas in /etc/logrotate.d/web-reports

If the logs rotate fine the next time they do, I will make this config change on production. Sometime next week.

patrickzurek commented 7 years ago

Change was made on prod and a notice sent to change control.