summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-23 16:40:44 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-23 16:40:44 +0000
commiteafba37e2bfc3897e3e7f65f2ce087fbee358f43 (patch)
tree7acd5c8fea2ad7a00ba393799f0a155417edf07d /units
parent56b4fc537662d8d42f366b5cb5be0eada79d8d56 (diff)
parent88051a6ab096b20ab098434fd4d4c127efca910f (diff)
downloadtrove-setup-eafba37e2bfc3897e3e7f65f2ce087fbee358f43.tar.gz
Merge branch 'baserock/liw/new-lc-2'
Reviewed by Daniel and Richard on the mailing list, and further changes based on review feedback by Richard on IRC. Reviewed-by: Richard Maw Reviewed-by: Daniel Silverstone
Diffstat (limited to 'units')
-rw-r--r--units/drop-lorry-controller-cronjob.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/units/drop-lorry-controller-cronjob.service b/units/drop-lorry-controller-cronjob.service
new file mode 100644
index 0000000..8cad21f
--- /dev/null
+++ b/units/drop-lorry-controller-cronjob.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Drop lorry-controller from lorry's crontab
+After=basic.target
+ConditionPathExists=!/etc/lorry-controller/lorry-controller-removed-from-crontab
+
+[Service]
+Type=oneshot
+Restart=no
+ExecStart=/usr/libexec/remove-lorry-controller-from-lorry-crontab
+ExecStartPost=/bin/touch /etc/lorry-controller/lorry-controller-removed-from-crontab
+User=lorry
+Group=lorry
+PermissionsStartOnly=true