Advertisement
Guest User

asd

a guest
Sep 23rd, 2014
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. # Restart script
  3. SCREEN_NAME="ttg"
  4. count=1
  5.  
  6. while [ $count ]
  7. do
  8.  
  9. # If no screen under that name was found...
  10. if [[ `screen -ls | grep $SCREEN_NAME` == "" ]]
  11. then
  12. # Nothing was found running ; restart the server.
  13. cd /home/steam/gmod_5/ ; screen -A -d -m -S $SCREEN_NAME ./srcds_run -game garrysmod +maxplayers 6 +map ttg_canyon_a1  +gamemode tacticaltoolgame -port 27015 -autoupdate
  14. fi
  15.  
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement