Skip to content
albanmartel edited this page May 6, 2014 · 1 revision

Maintenance

Log file rotation

If you are using the new project mechanism, you can skip these instructions: logs are rotated by default by supervisor (however, supervisor doesn’t compress old logs).
If you want compression, you can disable rotation in the supervisor configuration and rotate them with logrotate. Path will be something like /srv/synthese/PROJECT/logs/synthese.log

To avoid having the disk drive filled with log, you should configure log rotation. Here’s a sample logrotate configuration file that will store 7 days of logs and rotate them daily. You can install it in /etc/logrotate.d/s3-server for instance.

/var/log/rcs/s3-server.log {
  daily
  rotate 7
  copytruncate
  missingok
  notifempty
  compress
}
Clone this wiki locally