you might need to install screen with
Code:
apt-get install screen
Make a file called server.sh and put this in:
Code:
#!/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
Save the file, and chmod it to run
If you want to start your server, simply run server.sh with
It will start your srcd server in the background, to open it type:
Code:
screen -x css-server
If you want to close it again press ctrl+a+d, and it will detach the screen and keep it running in the background.