diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-23 16:40:44 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-23 16:40:44 +0000 |
commit | eafba37e2bfc3897e3e7f65f2ce087fbee358f43 (patch) | |
tree | 7acd5c8fea2ad7a00ba393799f0a155417edf07d /units/drop-lorry-controller-cronjob.service | |
parent | 56b4fc537662d8d42f366b5cb5be0eada79d8d56 (diff) | |
parent | 88051a6ab096b20ab098434fd4d4c127efca910f (diff) | |
download | trove-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/drop-lorry-controller-cronjob.service')
-rw-r--r-- | units/drop-lorry-controller-cronjob.service | 13 |
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 |