Fix Etherpad Lite log rotations.

Etherpad Lite does not give up its log files sanely. Instead
according to their bug tracker one should use logrotate's
copytruncate option. So we will use copytruncate.

Change-Id: Ic76d215bf35f3aa64ca5764512debb5cdcfca60e
This commit is contained in:
Clark Boylan 2012-06-06 17:01:33 +00:00
parent 5c00b92151
commit e742fcd4c7
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ class etherpad_lite::backup (
include logrotate
logrotate::file { 'eplitedb':
log => $dest,
options => ['nocompress', 'missingok', "rotate ${num_backups}", $rotation],
options => ['nocompress', "rotate ${num_backups}", $rotation],
require => Cron['eplitedbbackup']
}

View File

@ -41,13 +41,13 @@ class etherpad_lite::site (
include logrotate
logrotate::file { 'epliteerror':
log => "${etherpad_lite::base_log_dir}/${etherpad_lite::ep_user}/error.log",
options => ['compress', 'delaycompress', 'missingok', 'rotate 7', 'daily', 'notifempty'],
options => ['compress', 'copytruncate', 'missingok', 'rotate 7', 'daily', 'notifempty'],
require => Service['etherpad-lite']
}
logrotate::file { 'epliteaccess':
log => "${etherpad_lite::base_log_dir}/${etherpad_lite::ep_user}/access.log",
options => ['compress', 'delaycompress', 'missingok', 'rotate 7', 'daily', 'notifempty'],
options => ['compress', 'copytruncate', 'missingok', 'rotate 7', 'daily', 'notifempty'],
require => Service['etherpad-lite']
}