Contents
~> sudo systemctl list-timers
~> sudo vim /etc/systemd/system/cleanjournal.service
[Unit] Description=Clean Up Journal Log database [Service] Type=simple ExecStart=/usr/bin/journalctl --vacuum-time=7d
~> sudo vim /etc/systemd/system/cleanjournal.timer
[Unit] Description=Clean Up Journal Log Database every week [Timer] OnCalendar=weekly Persistent=true [Install] WantedBy=multi-user.target
~> sudo systemctl list-unit-files|grep -i cleanjournal cleanjournal.service static cleanjournal.timer disabled
~> sudo systemctl start cleanjournal.service
~> sudo systemctl start cleanjournal.timer
~> sudo systemctl enable cleanjournal.timer
~> sudo systemctl list-timers | grep cleanjournal Mon 2017-07-24 00:00:00 EEST 1 day 10h left n/a n/a cleanjournal.timer cleanjournal.service