@@ -, +, @@ - Run: $ misc4dev/cp_debian_files.pl - Edit the new /etc/logrotate.d/koha-common file changing 'weekly' for - Run: $ sudo ls -l /var/log/koha/kohadev - Open a second terminal on your kohadevbox. On it... - Run: $ sudo logrotate /etc/logrotate.d/koha-common - Run: $ sudo ls -l /var/log/koha/kohadev sizes make sense (.1 have contents, the ones without numbering probably zeroed <- it will depend on what's happening with your devbox in between). - Play with your Koha, do some searches too: - Apache handled the log rotation operation - Plack handled the log rotation operation - Zebra handled the log rotation operation - Sign off :-D! --- debian/koha-common.logrotate | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- a/debian/koha-common.logrotate +++ a/debian/koha-common.logrotate @@ -4,17 +4,12 @@ rotate 5 weekly missingok + copytruncate compress delaycompress notifempty sharedscripts - prerotate - /usr/sbin/koha-zebra --stop $(koha-list --enabled) > /dev/null - /usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null - endscript postrotate /etc/init.d/apache2 reload > /dev/null - /usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null - /usr/sbin/koha-zebra --start $(koha-list --enabled) > /dev/null endscript } --