closes #10231
[arvados.git] / services / dockercleaner / arvados-docker-cleaner.service
1 [Unit]
2 Description=Arvados Docker Image Cleaner
3 Documentation=https://doc.arvados.org/
4 After=network.target
5 AssertPathExists=/etc/arvados/docker-cleaner/docker-cleaner.json
6
7 [Service]
8 Type=simple
9 Restart=always
10 RestartSec=10s
11 RestartPreventExitStatus=2
12 #
13 # This unwieldy ExecStart command detects at runtime whether
14 # arvados-docker-cleaner is installed with the Python 3.3 Software
15 # Collection, and if so, invokes it with the "scl" wrapper.
16 ExecStart=/bin/sh -c 'if [ -e /opt/rh/python33/root/bin/arvados-docker-cleaner ]; then exec scl enable python33 arvados-docker-cleaner; else exec arvados-docker-cleaner; fi'
17
18 [Install]
19 WantedBy=multi-user.target