summaryrefslogtreecommitdiffstats
path: root/mkosi.extra
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-11-12 09:33:48 +0100
committerDennis Eriksen <d@ennis.no>2019-11-12 09:33:48 +0100
commitb73ece366bbbb1c7b84ba18dc0afb48bb2040d9a (patch)
tree81136a850a2b27be25d1263a5542956bc3b38401 /mkosi.extra
parentmoving from mkosi.skeleton to mkosi.extra (diff)
downloadmkosi-kanboard-b73ece366bbbb1c7b84ba18dc0afb48bb2040d9a.tar.gz
added systemd-timer to enable kanboard cronjobs
Diffstat (limited to 'mkosi.extra')
-rw-r--r--mkosi.extra/etc/systemd/system/kanboard.service8
-rw-r--r--mkosi.extra/etc/systemd/system/kanboard.timer10
2 files changed, 18 insertions, 0 deletions
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