From 334bdf7be6b46275b66b1d4f07e82d30b1b2dd45 Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 25 Aug 2022 23:12:47 +0200 Subject: [PATCH] Add systemd units --- contrib/systemd/latecomers.service | 5 +++++ contrib/systemd/latecomers.timer | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 contrib/systemd/latecomers.service create mode 100644 contrib/systemd/latecomers.timer diff --git a/contrib/systemd/latecomers.service b/contrib/systemd/latecomers.service new file mode 100644 index 0000000..67e105d --- /dev/null +++ b/contrib/systemd/latecomers.service @@ -0,0 +1,5 @@ +[Unit] +Description=Run latecomers + +[Service] +ExecStart=%h/.latecomers/venv/bin/latecomers %h/.latecomers/config.yaml diff --git a/contrib/systemd/latecomers.timer b/contrib/systemd/latecomers.timer new file mode 100644 index 0000000..747eb5f --- /dev/null +++ b/contrib/systemd/latecomers.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Run latecomers at 8AM every day + +[Timer] +OnCalendar=*-*-* 08:00:00 + +[Install] +WantedBy=timers.target