]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/timer.c
core: hook up timer unit type with clean operation
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Apr 2019 16:49:40 +0000 (18:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2019 10:18:51 +0000 (12:18 +0200)
commit89f6fe7b303875307e201449d9d821cdbb9eacac
tree67d92ce7da500a0e64d6f5e4d99ec0a348e0a53b
parent4c2f5842308e835beaff012aea1a77ebe0cf5ad8
core: hook up timer unit type with clean operation

timer units maintain state on disk (the persistent touch file), hence
let's expose cleaning it up generically with the new cleaning operation
for units.

This is a much simpler implementation as for the service unit type:
instead of forking out a worker process we just remove the touch file
directly. That should be OK since we only need to remove a single
(empty) file, instead of a recursive user-controlled directory tree.

Fixes: #4930
src/core/timer.c