Re: [hlds_linux] Server start/stop script
thanks! 2008/7/5 John Q <[EMAIL PROTECTED]>: > This is mine it works I like it if you have any questions just ask > > > > #Settings.. > startline="./hlds_run -game +ip +port 27016 +maxplayers 8 +map > ns_eclipse" > screen="" > home="" > > > # functions.. No touchy! > > function mstart { > echo "Attempting Start.." > cd $home; screen -dmS $screen $startline >case `ps aux | grep SCREEN | grep $screen | awk {'print > $13'}` in > $screen ) echo "Server Start Succeeded!" > ;; > * ) echo "ERROR: Server Start Failed! Try > Debug" > exit >esac >} > > function mstop { > echo "Attempting Stop..." > kill `ps aux | grep SCREEN | grep $screen | awk {'print > $2'}` > case `ps aux | grep SCREEN | grep $screen | awk {'print > $13'}` in >$screen ) echo "ERROR: Server Stop Failed!" > exit > ;; > * ) echo "Server Stop Succeeded!" > esac >} > > > #Switchor! > > case $1 in > start ) mstart >;; > stop ) mstop >;; > restart ) mstop; mstart >;; > debug ) cd $home;$startline >;; >* ) echo "Usage:{start|stop|restart|debug}" >;; > esac > > > #### > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir > Osipenko > Sent: Saturday, July 05, 2008 12:11 AM > To: hlds_linux@list.valvesoftware.com > Subject: [hlds_linux] Server start/stop script > > Hi friends, > i would greatly thank you?if anyone can share his server start/stop script/ > because i am not good at writing bash scripts. > Thanks in advance! > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 0.0.0/0 - Release Date: 12:00 > AM > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > 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
Re: [hlds_linux] Server start/stop script
This is mine it works I like it if you have any questions just ask #Settings.. startline="./hlds_run -game +ip +port 27016 +maxplayers 8 +map ns_eclipse" screen="" home="" # functions.. No touchy! function mstart { echo "Attempting Start.." cd $home; screen -dmS $screen $startline case `ps aux | grep SCREEN | grep $screen | awk {'print $13'}` in $screen ) echo "Server Start Succeeded!" ;; * ) echo "ERROR: Server Start Failed! Try Debug" exit esac } function mstop { echo "Attempting Stop..." kill `ps aux | grep SCREEN | grep $screen | awk {'print $2'}` case `ps aux | grep SCREEN | grep $screen | awk {'print $13'}` in $screen ) echo "ERROR: Server Stop Failed!" exit ;; * ) echo "Server Stop Succeeded!" esac } #Switchor! case $1 in start ) mstart ;; stop ) mstop ;; restart ) mstop; mstart ;; debug ) cd $home;$startline ;; * ) echo "Usage:{start|stop|restart|debug}" ;; esac -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir Osipenko Sent: Saturday, July 05, 2008 12:11 AM To: hlds_linux@list.valvesoftware.com Subject: [hlds_linux] Server start/stop script Hi friends, i would greatly thank you?if anyone can share his server start/stop script/ because i am not good at writing bash scripts. Thanks in advance! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 0.0.0/0 - Release Date: 12:00 AM ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
[hlds_linux] Server start/stop script
Hi friends, i would greatly thank you?if anyone can share his server start/stop script/ because i am not good at writing bash scripts. Thanks in advance! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
[hlds_linux] server start
Hi, Please be patient with me...I haven't run a server since qwtf days... What config file sets the IP address of the server? Thanks. -- Matt ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux