Run server in background

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
teckins
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Nov 13, 2011 12:17 pm

Run server in background

Post by teckins »

Hey all,

when I open putty I put a startup command for my cs 1.6 server to start up as soon as I close putty the server shuts down is it possible for me to run the server without it shutting down when I shutdown putty I tried the screen can someone post a simple tuto. not any links just post a tuto. for how to do it thanks

Teckins please help
T4rg3T
New to forums
New to forums
Posts: 1
Joined: Sun Nov 13, 2011 8:28 pm

Re: Run server in background

Post by T4rg3T »

Try going here
http://www.srcds.com/db/engine.php?suba ... 0&archive=

Look at the Running srcds in background (re-attachable) section

Code: Select all

#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 -autoupdate
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Run server in background

Post by Edge100x »

Even better, we have a tutorial here: http://www.nfoservers.com/forums/viewto ... =67&t=4163, including how to use "screen" after you start the server.
Post Reply