Reputation: 223
I just started a CS GO server, I would use TCAdmin a GUI for making game servers but since Counter Strike GO is in beta, doesnt work too well with it. My question is I have a script called ./srcds_run then I run it. Works perfect. But how would I make it run as a background process so I can just log out and leave the server there?
Thanks, necro.
Upvotes: 2
Views: 4866
Reputation: 11
You could start your script from the rc.local file, if you want it running from boot up.
If you want it running only manually, I like the nohup idea.
Upvotes: 0
Reputation: 143032
This should work:
nohup ./srcds_run &
This puts your command in the background and has it continue to run after you log out [nohup man page]
Upvotes: 8
Reputation: 8236
The screen
utility will enable you to run a process in 'detached' mode:
screen -d -m ./srcds_run
Upvotes: 2