From 5b475b38ddc3bb1e373110e81cd1d00d9dcfd246 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 22 Apr 2014 13:56:14 +0000 Subject: Add unit for modifying lorry crontab --- units/drop-lorry-controller-cronjob.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 units/drop-lorry-controller-cronjob.service 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 -- cgit v1.2.1