diff options
Diffstat (limited to 'units')
-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 |