remotelabz / remotelabz-worker

VM-side of the RemoteLabz project.
0 stars 0 forks source link

Configure logrotate #33

Closed florent-n closed 2 years ago

florent-n commented 3 years ago

To avoid to fill the hard disk, a logrotate have to be configure

sudo nano /etc/logrotate.d/remotelabz-worker
/opt/remotelabz-worker/var/log/*.log {
        daily
        missingok
        rotate 52
        size 100M
        compress
        notifempty
        create 664 remotelabz-worker www-data
        su remotelabz-worker www-data
}