scottyhardy / docker-wine

Docker image that includes Wine and Winetricks for running Windows applications on Linux and macOS
MIT License
906 stars 158 forks source link

remove the sesman pidfile if it exists at startup #79

Closed ds17f closed 4 years ago

ds17f commented 4 years ago

When using docker-compose up an anonymous volume is created. If a session is open and the container is terminated, the pidfile for xrdp-sesman is not removed. When the container is restarted, and the same volume is used, xrdp-sesman will fail to start because of the pidfile. This prevents connections to the xrdp server.

This patch will simply remove the pidfile if it exists prior to launching the xrdp-sesman

ds17f commented 4 years ago

Super happy to contribute. Thank you so much for your work on this. Your project opened my eyes to this even being possible (docker/xrdp/wine) and catapulted me over a lot of the hard parts. Great stuff man!