10343: Update postinst script to run on Red Hat systems, and accommodate Python33...
[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 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'
13
14 [Install]
15 WantedBy=multi-user.target