From 40e7ccbdbac212202db17c563238bdc2d5df68b2 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Sun, 28 Jan 2024 11:24:35 +0100 Subject: [PATCH] feat: add vanilla-updates.timer --- .../usr/lib/systemd/system/vanilla-updates.timer | 6 ++++++ modules/00-vanilla-system-operator.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 includes.container/usr/lib/systemd/system/vanilla-updates.timer diff --git a/includes.container/usr/lib/systemd/system/vanilla-updates.timer b/includes.container/usr/lib/systemd/system/vanilla-updates.timer new file mode 100644 index 0000000..66b0539 --- /dev/null +++ b/includes.container/usr/lib/systemd/system/vanilla-updates.timer @@ -0,0 +1,6 @@ +Requires=vanilla-updates.service +After=vanilla-updates.service +[Timer] +OnBootSec=1h +OnUnitActiveSec=1h +Unit=vanilla-updates.service \ No newline at end of file diff --git a/modules/00-vanilla-system-operator.yml b/modules/00-vanilla-system-operator.yml index 5a85b16..7b2ca99 100644 --- a/modules/00-vanilla-system-operator.yml +++ b/modules/00-vanilla-system-operator.yml @@ -62,4 +62,5 @@ modules: - name: enable-systemd-unit type: shell commands: - - ln -s /usr/lib/systemd/system/vanilla-updates.service /etc/systemd/system/multi-user.target.wants/vanilla-updates.service \ No newline at end of file + - ln -s /usr/lib/systemd/system/vanilla-updates.service /etc/systemd/system/multi-user.target.wants/vanilla-updates.service + - ln -s /usr/lib/systemd/system/vanilla-updates.timer /etc/systemd/system/timers.target.wants/vanilla-updates.timer \ No newline at end of file