[ Converted text/html to text/plain ]
Woah, does it have to be so complicated?:D
Locutus
David Syers írta:

--
[ Picked text/plain from multipart/alternative ]
Below is a copy of a server startup script that I used, just calling the script 
with the param stop would kill a server

ie.

./server.sh stop
./server.sh start

would be a restart

*** CODE START ***
#!/bin/sh

MAP='cs_office'
PORT='27015'
TICKRATE='66'
CSS='css1'
MAXPLAYERS='19'

case "$1" in
        qstart|start)
                if [ -e "/home/${CSS}/cstrike/${CSS}.pid" ]
                then
                        echo "The server is already running"
                        exit 1
                fi
        ;;
esac

case "$1" in
        qstart)
                echo "Starting CS:Source Server (quick)"
                sleep 1
                screen -A -m -d -S css-server ./srcds_run -console -game 
cstrike +map ${MAP} +maxplayers ${MAXPLAYERS} -port ${PORT} -tickrate 
${TICKRATE} -ip 81.19.209.2 +fps_max 600 -pidfile ${CSS}.pid +mp_dynamicpricing 0
        ;;
        start)
                echo "Starting CS:Source Server"
                sleep 1
                screen -A -m -d -S css-server ./srcds_run -console -game 
cstrike +map ${MAP} +maxplayers ${MAXPLAYERS} -autoupdate -port ${PORT} 
-tickrate ${TICKRATE} -ip 81.19.209.2 +fps_max 600 -pidfile ${CSS}.pid 
+mp_dynamicpricing 0
        ;;
        stop)
                echo "Stopping CSS Server"
                sleep 1
                screen -X quit
                rm -f /home/${CSS}/cstrike/${CSS}.pid
        ;;
    verify)
        echo "echo Verifying Installation"
        sleep 1
        ./steam -command update -game "Counter-Strike Source" -dir . -verify_all
    ;;
    install)
        echo "echo Installing"
        sleep 1
        ./steam -command update -game "Counter-Strike Source" -dir .
    ;;
    debug)
        echo "Starting CS:Source Server (debug)"
                sleep 1
                screen -A -m -d -S css-server ./srcds_run -debug -console -game 
cstrike +map ${MAP} +maxplayers ${MAXPLAYERS} -autoupdate -port ${PORT} 
-tickrate ${TICKRATE} -ip 81.19.209.2 +fps_max 600 -pidfile ${CSS}.pid 
+mp_dynamicpricing 0
    ;;
    novac)
        echo "Starting CS:Source Server (NO VAC!!)"
                sleep 1
                screen -A -m -d -S css-server ./srcds_run -insecure -console 
-game cstrike +map ${MAP} +maxplayers ${MAXPLAYERS} -port ${PORT} -tickrate 
${TICKRATE} -ip 81.19.209.2 +fps_max 600 -pidfile ${CSS}.pid +mp_dynamicpricing 0
    ;;
        *)
                echo "Usage: $0 qstart|start|stop|verify"
                exit 1
esac
exit 0

*** CODE END ***

Rónai György <[EMAIL PROTECTED]>[1] wrote: Hi

Can anyone pls describe me a method, to restart all my scrds processes
automatically?

So, how can i kill a specific screen, and then restart the server?
I know, how to write a crontab script, just dont know, how to kill a
specific screen, via process pid, or name?

Thx
Locutus

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux[2]

--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux[3]




===References:===
  1. mailto:[EMAIL PROTECTED]
  2. http://list.valvesoftware.com/mailman/listinfo/hlds_linux
  3. http://list.valvesoftware.com/mailman/listinfo/hlds_linux

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to