This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Logfile rotation¶
You can set up automatic rotation of logfiles to avoid overfilling the disk space.
The logrotate utility is a standard tool in Linux systems. It is run by cron.daily once a day at 6:25 am (on Ubuntu systems).
To configure logfile rotation for shop logs, create a new configuration file in /etc/logrotate.d/silver-eshop:
1 2 3 4 5 6 7 8 9 | |
If the logfiles grow very quickly, you can run logrotate once per hour by putting it in cron.hourly (it will run at 17 minutes past every hour):
1 | |