diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-09-08 15:50:52 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-09-08 15:50:52 +0000 |
commit | 4a6d0ef584a3d87c1d6ad237336660aacd161650 (patch) | |
tree | 71ac6cc3557d6cf340f1dbeec32ce429794ec096 /units | |
parent | 0ef176c196db439e05026705450f691e678cdccd (diff) | |
parent | 2ce8d016add6dd279c3903fea26645a7499ec50a (diff) | |
download | lorry-controller-4a6d0ef584a3d87c1d6ad237336660aacd161650.tar.gz |
Merge branch 'baserock/liw/de-ghost'
Diffstat (limited to 'units')
-rw-r--r-- | units/lorry-controller-remove-ghost-jobs.service | 12 | ||||
-rw-r--r-- | units/lorry-controller-remove-ghost-jobs.timer | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/units/lorry-controller-remove-ghost-jobs.service b/units/lorry-controller-remove-ghost-jobs.service new file mode 100644 index 0000000..e28a494 --- /dev/null +++ b/units/lorry-controller-remove-ghost-jobs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Lorry Controller remove ghost jobs +After=lighttpd-lorry-controller-webapp.service + +[Install] +WantedBy=multi-user.target + +[Service] +ExecStart=/usr/bin/curl -o /dev/null -X POST -d '' http://localhost:12765/1.0/remove-ghost-jobs +Restart=no +User=lorry +Group=lorry diff --git a/units/lorry-controller-remove-ghost-jobs.timer b/units/lorry-controller-remove-ghost-jobs.timer new file mode 100644 index 0000000..61ebaba --- /dev/null +++ b/units/lorry-controller-remove-ghost-jobs.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Lorry Controller remove ghost jobs +After=lighttpd-lorry-controller-webapp.service + +[Install] +WantedBy=multi-user.target + +[Timer] +OnUnitInactiveSec=60 |