summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--units/lorry-controller-remove-old-jobs.service12
-rw-r--r--units/lorry-controller-remove-old-jobs.timer8
2 files changed, 20 insertions, 0 deletions
diff --git a/units/lorry-controller-remove-old-jobs.service b/units/lorry-controller-remove-old-jobs.service
new file mode 100644
index 0000000..d1372b4
--- /dev/null
+++ b/units/lorry-controller-remove-old-jobs.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lorry Controller remove old jobs
+After=lighttpd-lorry-controller-webapp.service
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+ExecStart=/usr/bin/lorry-controller-remove-old-jobs
+Restart=no
+User=lorry
+Group=lorry
diff --git a/units/lorry-controller-remove-old-jobs.timer b/units/lorry-controller-remove-old-jobs.timer
new file mode 100644
index 0000000..508a43f
--- /dev/null
+++ b/units/lorry-controller-remove-old-jobs.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Lorry Controller remove old jobs
+
+[Install]
+WantedBy=multi-user.target
+
+[Timer]
+OnUnitInactiveSec=60