summaryrefslogtreecommitdiff
path: root/units/drop-lorry-controller-cronjob.service
blob: 8cad21fd10be357275c64674dedf4bc9927037ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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