Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[guide] add logroate.d files #15

Open
ihrapsa opened this issue Jul 15, 2021 · 0 comments
Open

[guide] add logroate.d files #15

ihrapsa opened this issue Jul 15, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ihrapsa
Copy link
Owner

ihrapsa commented Jul 15, 2021

This will rotate logs and prevent

  • Install: opkg update && opkg install logrotate
  • add this cron job in /etc/crontabs/root:
0 8 * * * *     /usr/sbin/logrotate /etc/logrotate.conf
  • Create and put inside /etc/logrotate.d/ the following files and its respective contents:

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
}
@ihrapsa ihrapsa added the documentation Improvements or additions to documentation label Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant