655
submitted 1 month ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 5 points 1 month ago

If we're using systemd already, why not a timer?

[-] [email protected] 3 points 1 month ago

Cron is better known than a systemd timer, but you can provide an example for the timer 😃

[-] [email protected] 5 points 1 month ago* (last edited 1 month ago)

Really, the correct way would be to set the limit you want for journald. Put this into /etc/systemd/journald.conf.d/00-journal-size.conf:

[Journal]
SystemMaxUse=50M

Or something like this using a timer: systemd-run --timer-property=OnCalender=daily $COMMAND

[-] [email protected] 3 points 1 month ago

Thanks for this addition ☺️

this post was submitted on 01 Aug 2024
655 points (98.5% liked)

linuxmemes

20756 readers
1072 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS