diff options
author | Dennis Eriksen <d@ennis.no> | 2019-11-12 09:33:48 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2019-11-12 09:33:48 +0100 |
commit | b73ece366bbbb1c7b84ba18dc0afb48bb2040d9a (patch) | |
tree | 81136a850a2b27be25d1263a5542956bc3b38401 /mkosi.extra | |
parent | moving from mkosi.skeleton to mkosi.extra (diff) | |
download | mkosi-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.service | 8 | ||||
-rw-r--r-- | mkosi.extra/etc/systemd/system/kanboard.timer | 10 |
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 |