Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
738 stars 80 forks source link

Automatically Restart Steam #30

Closed lijamez closed 10 months ago

lijamez commented 1 year ago

Is your feature request related to a problem?

The purpose of this container is running steam (hence the name steam-headless). However, steam may stop running either because it crashed, or it was manually closed.

What is your feature request?

The container should do whatever it takes to restart Steam automatically if it is no longer running.

Are there any workarounds?

No response

Additional Context

No response

Josh5 commented 1 year ago

This may be better of as a user-configuration option. Otherwise, there is already a supervisord service ini file for running steam. It will restart after 30 seconds if it detects that steam has closed. You can use that to manage your steam. You just need to modify the init process a bit, which you can do by creating a startup script.