I have a Linux based server with Debian dist installed.
This server actually hosts 3 CSGO servers.
When i shut down putty, all conections with this server are closed and hosted servers are not able to login.
Is CSGO hosted servers, i’ve found a script to keep those applications running even when putty is down, but, i didn’t found a script to keep GTA 5 FIVEM server running in the same condidition.
I suppose that those CSGO servers run in the background while the fiveM server currently runs in the foreground?
Foreground processes are terminated when the user exits the shell (by closing putty for example). A utility that is often used to run processes in the background (and therefore preventing that they get terminated when the shell exits) is screen.
Take a look at this tutorial, it explains how to use screen with fiveM.