21361: Remove SCL support from arvados-docker-cleaner ExecStart
authorBrett Smith <brett.smith@curii.com>
Mon, 29 Jan 2024 04:05:20 +0000 (23:05 -0500)
committerBrett Smith <brett.smith@curii.com>
Wed, 31 Jan 2024 22:22:25 +0000 (17:22 -0500)
This is no longer needed that we no longer support CentOS 7.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

services/dockercleaner/arvados-docker-cleaner.service

index 1aceb111655fa3c97c6c2dd94ffb33d57cadfb69..819c920ff2a307a7e1c86ddf62fb9009501082f0 100644 (file)
@@ -13,11 +13,7 @@ Type=simple
 Restart=always
 RestartSec=10s
 RestartPreventExitStatus=2
-#
-# This unwieldy ExecStart command detects at runtime whether
-# arvados-docker-cleaner is installed with the Python 3.3 Software
-# Collection, and if so, invokes it with the "scl" wrapper.
-ExecStart=/bin/sh -c 'if [ -e /opt/rh/rh-python36/root/bin/arvados-docker-cleaner ]; then exec scl enable rh-python36 arvados-docker-cleaner; else exec arvados-docker-cleaner; fi'
+ExecStart=/usr/bin/arvados-docker-cleaner
 
 [Install]
 WantedBy=multi-user.target