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:
parent
b9eb2151a3
commit
be168e51b6
@ -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']
|
||||
}
|
||||
|
||||
|
@ -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']
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user