Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

systemd timers

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content