diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-09-08 12:45:30 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-09-08 12:45:30 +0000 |
commit | 2ce8d016add6dd279c3903fea26645a7499ec50a (patch) | |
tree | 71ac6cc3557d6cf340f1dbeec32ce429794ec096 | |
parent | 5cf3f8eb6df06994bade02db6006ea8a102d02ae (diff) | |
download | lorry-controller-2ce8d016add6dd279c3903fea26645a7499ec50a.tar.gz |
Add [Install] sections to systemd units
Suggested by Pedro Alvarez.
-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 |