Disable the Restart= line in the init containers systemd template.
It is commented out as there are probably more appropriate workarounds
to use in the future but this should fix testing on centos8 based
systems.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
ExecStart=/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run
ExecStop=/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run stop
ExecStopPost=-/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run poststop
-Restart=on-failure
-RestartSec=10s
+# FIXME: Disable Restart on oneshot service. systemd versions before v224
+# did not allow Restart=on-failure with a oneshot service. Having it set
+# prevents the service from starting on centos8. Disable it for now and
+# revisit this at a later time.
+#Restart=on-failure
+#RestartSec=10s
TimeoutStopSec=120
StartLimitInterval=30min
StartLimitBurst=5