diff options
-rw-r--r-- | units/lorry-controller-remove-ghost-jobs.service | 3 | ||||
-rw-r--r-- | units/lorry-controller-remove-ghost-jobs.timer | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/units/lorry-controller-remove-ghost-jobs.service b/units/lorry-controller-remove-ghost-jobs.service index 585a039..e28a494 100644 --- a/units/lorry-controller-remove-ghost-jobs.service +++ b/units/lorry-controller-remove-ghost-jobs.service @@ -2,6 +2,9 @@ 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 diff --git a/units/lorry-controller-remove-ghost-jobs.timer b/units/lorry-controller-remove-ghost-jobs.timer index bbbb003..61ebaba 100644 --- a/units/lorry-controller-remove-ghost-jobs.timer +++ b/units/lorry-controller-remove-ghost-jobs.timer @@ -2,5 +2,8 @@ Description=Lorry Controller remove ghost jobs After=lighttpd-lorry-controller-webapp.service +[Install] +WantedBy=multi-user.target + [Timer] OnUnitInactiveSec=60 |