December 2018
Beginner
826 pages
22h 54m
English
Starting with systemd timers, we're going to list what exists on our box by default:
$ systemctl --no-pager list-timers --allNEXT LEFT LAST PASSED UNIT ACTIVATESMon 2018-08-27 17:39:37 UTC 23h left Sun 2018-08-26 17:39:37 UTC 52min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.servicen/a n/a n/a n/a systemd-readahead-done.timer systemd-readahead-done.service2 timers listed.
Within this output, we can see two timers. The first is systemd-tmpfiles-clean.timer and its action is to trigger systemd-tmpfiles-clean.service.
Running systemctl cat against this file shows us its timer configuration:
# /usr/lib/systemd/system/systemd-tmpfiles-clean.timer# This file is part of systemd.## systemd is free software; you can redistribute ...