and my server use 36964.. but anyway my server port is 36963
whats the problem?
# The user that will run the server user=marci # Leave this alone. NAME=cs2d PATH=/bin:/usr/bin:/sbin:/usr/sbin # DON'T FORGET TO CHANGE THE PATH TO YOUR NEEDS! DIR=/cs2dhungary # Leave this alone. DAEMON=cs2d_dedicated # Internet-server: PARAMS="" # Leave this alone. DESC="Server" case "$1" in start) if [[ `su $user -c "screen -ls |grep $NAME"` ]] then echo "Server is already running!" else echo "Starting $DESC" su $user -c "cd $DIR; screen -m -d -S cs2d ./$DAEMON" fi ;; stop) if [[ `su $user -c "screen -ls |grep $NAME"` ]] then echo -n "Stopping $DESC" kill `ps aux | grep -v grep | grep -i $user | grep -i screen | grep -i $NAME | awk '{print $2}'` echo " ... done." else echo "Coulnd't find a running $DESC" fi ;; restart) if [[ `su $user -c "screen -ls |grep $NAME"` ]] then echo -n "Stopping $DESC" kill `ps aux | grep -v grep | grep -i $user | grep -i screen | grep -i $NAME | awk '{print $2}'` echo " ... done." else echo "Coulnd't find a running $DESC" fi echo -n "Starting $DESC" su $user -c "cd $DIR; screen -m -d -S cs2d ./$DAEMON $PARAMS" echo " ... done." ;; status) ps aux | grep -v grep | grep cs2d > /dev/null CHECK=$? [ $CHECK -eq 0 ] && echo "Server is online" || echo "Server is offline" ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 ;; esac exit 0