You could start the server with a script that would do the following:

cd /home/gameserver1/srcds_l
./srcds_run -game cstrike +maxplayers 20 +map de_dust +ip IP -port PORT -tickrate 66 +tv_port 27086 +bot_join_after_player 1 +exec server.cfg -autoupdate& > /dev/n$

Or add a 2nd script in the root of the users home folder to do the following where home and user are defined, which would then call a 2nd startline file which just held the 2nd line above with the ./srcds ............... stuff in.


cd $home/$user/srcds_l/orangebox
./start.cssource > /dev/null > /dev/null 2>&1

Either way the ./srcds bit has to be performed from within the folder you cant do ./home/yadayad/


Simon Gunton
Support Analyst
INX-Gaming.com
Phone: 01733 687699
EMail: si...@inx-gaming.co.uk <mailto:si...@inx-gaming.co.uk>

Support: http://support.inx-network.com <http://support.inx-network.com/>
This e-mail and any attachments are confidential. If you are not the intended recipient, please contact the sender. Please then delete the email and do not disclose the contents to anyone.

Any views or opinions presented in this email or its attachments are solely those of the author and do not necessarily represent those of INX-Network Limited

On 13/01/2011 11:00, Ulrich Block wrote:
I just read on a forum that some people had issues starting their servers.
They tried something like:
 "some/path/srcds_run -parameters"
which does not work because the srcds_run needs to be run from its directory.

Could someone at valve add something like
"cd $(dirname $0)"
at the start of the script to make it more userfriendly?

_______________________________________________
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

Reply via email to