From 4f1a693b88ba2d887ac4431552054ebef9916f5f Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sat, 6 Aug 2022 13:38:03 +1200 Subject: [PATCH] Add an autorestart count to the steam.ini This allows this container to start up before X is ready on the main container and restart the process until it becomes available. Each restart will have a small delay of a few seconds. So 50 attempts should be a few mins. --- overlay/etc/supervisor.d/steam.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlay/etc/supervisor.d/steam.ini b/overlay/etc/supervisor.d/steam.ini index 6f00629..13ba83a 100644 --- a/overlay/etc/supervisor.d/steam.ini +++ b/overlay/etc/supervisor.d/steam.ini @@ -3,6 +3,10 @@ [program:steam] autostart=false autorestart=true +# Retry a restart a few times. +# This allows this container to start up before X is ready and restart the process until it becomes available. +# Each restart will have a small delay of a few seconds. So 50 attempts should be a few mins. +startretries=50 priority=50 user=%(ENV_USER)s directory=/home/%(ENV_USER)s