]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
IBM Z: Delete stale self-hosted builder containers
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 15 Mar 2022 12:09:04 +0000 (08:09 -0400)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 15 Mar 2022 17:31:52 +0000 (18:31 +0100)
Due to things like power outage ExecStop may not run, resulting in a
stale actions-runner container. This would prevent ExecStart from
succeeding, so try deleting such stale containers in ExecStartPre.

arch/s390/self-hosted-builder/actions-runner.service

index 1d3129ff50d8a9f95ff55bb095733c6b6b74b03b..71053a79d6e7fea77f7177e11b570731fc00e900 100644 (file)
@@ -7,6 +7,7 @@ StartLimitIntervalSec=0
 [Service]
 Type=simple
 Restart=always
+ExecStartPre=-/usr/bin/docker rm --force actions-runner
 ExecStart=/usr/bin/docker run \
               --env-file=/etc/actions-runner \
               --init \