Note: As of version 3.8, logs are preserved automatically
- Edit file: /etc/init/cb-event-forwarder.conf
change:
exec /usr/share/cb/integrations/event-forwarder/cb-event-forwarder /etc/cb/integrations/event-forwarder/cb-event-forwarder.conf &> /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.log
to:
exec sh /usr/share/cb/integrations/event-forwarder/cb-event-forwarder.sh
- Create a new file: /usr/share/cb/integrations/event-forwarder/cb-event-forwarder.sh, with the following content:
#!/bin/bash
cat /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.log >> /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.log.backup
exec /usr/share/cb/integrations/event-forwarder/cb-event-forwarder /etc/cb/integrations/event-forwarder/cb-event-forwarder.conf &> /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.log
- Stop and Start the Event Forwarder to enable the change:
initctl stop cb-event-forwarder
initctl start cb-event-forwarder