On Thursday 07 December 2006 10:33, Parker Lewis wrote:
> Hello,
> thank you for this explanation.
>
> Instead of the screen-command, I'm using this one:
>
> cd <...>
> su <username for this gameserver> -c "./hlds_run -game <...>" &
>
> Do you think this an adequate way to start the gameservers? And is there
> any chance to send rcon commands to them, too?

No it is bad thing because you loose control over server (you loose control
terminal). IMHO screen is the best choice. Look at the manual (man screen)
and you'll be suprised what it can do.

You may create "bin" directory in homedir of target user. Add it to his $PATH.

Put (for example) script called startserver.sh to "bin"

-------->8--------
#!/bin/bash
cd <hldsdir>
screen -dmS hlds -- ./hlds_run -game <...>
-------->8---------

Then you can invoke server by typing:

su - <user> -c startserver.sh




--
mariuszZIELIŃSKI

_______________________________________________
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