Séra Balázs@lemmy.world to linuxmemes@lemmy.world · 5 months agoRemember to not to forget clearing your journallemmy.worldimagemessage-square62fedilinkarrow-up1675arrow-down110
arrow-up1665arrow-down1imageRemember to not to forget clearing your journallemmy.worldSéra Balázs@lemmy.world to linuxmemes@lemmy.world · 5 months agomessage-square62fedilink
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up5·5 months agoIf we’re using systemd already, why not a timer?
minus-squareMorethanevil@lemmy.fedifriends.sociallinkfedilinkarrow-up3·5 months agoCron is better known than a systemd timer, but you can provide an example for the timer 😃
minus-squarefallingcats@discuss.tchncs.delinkfedilinkarrow-up5·edit-25 months agoReally, 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
minus-squareMorethanevil@lemmy.fedifriends.sociallinkfedilinkarrow-up3·5 months agoThanks for this addition ☺️
If we’re using systemd already, why not a timer?
Cron is better known than a systemd timer, but you can provide an example for the timer 😃
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
:Or something like this using a timer:
systemd-run --timer-property=OnCalender=daily $COMMAND
Thanks for this addition ☺️