Open ihrapsa opened 3 years ago
This will rotate logs and prevent
opkg update && opkg install logrotate
/etc/crontabs/root
0 8 * * * * /usr/sbin/logrotate /etc/logrotate.conf
/etc/logrotate.d/
vi /etc/logrotate.d/klipper
/root/klipper_logs/klippy.log { rotate 7 daily maxsize 64M missingok notifempty compress delaycompress sharedscripts }
vi /etc/logrotate.d/moonraker
/root/klipper_logs/moonraker.log { rotate 7 daily maxsize 64M missingok notifempty compress delaycompress sharedscripts }
This will rotate logs and prevent
opkg update && opkg install logrotate
/etc/crontabs/root
:/etc/logrotate.d/
the following files and its respective contents:vi /etc/logrotate.d/klipper
vi /etc/logrotate.d/moonraker