Hi Everybody,
I am getting stuck trying to allocate information related with logs rotation. Dump1090 coming with predefined config but fr24feed.
Would like to share what I did and test because the log of feed app become huge:
Create new file in /etc/logrotate.d/ for example fr24feed
Add the following lines if the log storage directory is /var/log/fr24feed/ and the log file is named fr24feed.log
Think this will prevent consuming full space of /var or root partition of your raspberry as var is part of the root. In my case I am using separate /var
Cheers
I am getting stuck trying to allocate information related with logs rotation. Dump1090 coming with predefined config but fr24feed.
Would like to share what I did and test because the log of feed app become huge:
Create new file in /etc/logrotate.d/ for example fr24feed
Code:
sudo touch /etc/logrotate.d/fr24feed sudo vim /etc/logrotate.d/fr24feed
Code:
/var/log/fr24feed/*.log { daily missingok rotate 10 compress delaycompress copytruncate notifempty postrotate if /bin/systemctl status fr24feed.service > /dev/null ; then \ /bin/systemctl restart fr24feed.service > /dev/null; \ fi; endscript }
Cheers