docker-steam-headless
docker-steam-headless copied to clipboard
WoL support
Is your feature request related to a problem?
Running a Steam Headless container can take up a bit of RAM. I would like to reduce the container use when it is not doing anything.
What is your feature request?
I believe we could check for running processes on the desktop. If nothing is running (no Steam games or Moonlight connections), then we can safely assume that the container is "idle". When it is idle for a set period of time, perhaps an hour, we could stop all processes supervisord is running and put the container to sleep with the exception of a small WoL listener service. When this Listener service is triggered by either Moonlight or Steam Link, it can "wake up" the services again and restart the desktop.
We could either do this completely internally within the container, or we could pass the host Docker socket to the container and have it issue restart commands to itself.
Are there any workarounds?
We can sort of do this already if the container is run in "host" mode and we use an external WoL listener service to trigger commands. But this will not work if we are using any other Docker network type.
Additional Context
No response