This question already has an answer here:
I have made a shell script to run a server for a game I like. I need the server to run when I close putty. Right now putty is the console, but I need it to not close when I close the program down.
~/server_1/srcds_run -game garrysmod +maxplayers 32 +map gm_bigcity
I need it to run everything in there daemonized.