From b73ece366bbbb1c7b84ba18dc0afb48bb2040d9a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 12 Nov 2019 09:33:48 +0100 Subject: added systemd-timer to enable kanboard cronjobs --- mkosi.extra/etc/systemd/system/kanboard.service | 8 ++++++++ mkosi.extra/etc/systemd/system/kanboard.timer | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 mkosi.extra/etc/systemd/system/kanboard.service create mode 100644 mkosi.extra/etc/systemd/system/kanboard.timer (limited to 'mkosi.extra') diff --git a/mkosi.extra/etc/systemd/system/kanboard.service b/mkosi.extra/etc/systemd/system/kanboard.service new file mode 100644 index 0000000..33e528c --- /dev/null +++ b/mkosi.extra/etc/systemd/system/kanboard.service @@ -0,0 +1,8 @@ +[Unit] +Description=Run kanboard's cron job + +[Service] +Type=oneshot +User=www-data +WorkingDirectory=/var/www/kanboard +ExecStart=/var/www/kanboard/cli cronjob diff --git a/mkosi.extra/etc/systemd/system/kanboard.timer b/mkosi.extra/etc/systemd/system/kanboard.timer new file mode 100644 index 0000000..852e800 --- /dev/null +++ b/mkosi.extra/etc/systemd/system/kanboard.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Daily execution of kanboard's cronjob + +[Timer] +OnCalendar=daily +RandomizedDelaySec=6h +Persistent=true + +[Install] +WantedBy=timers.target -- cgit v1.2.3