I'm having the same issure. I've been messing around with scripts to try to make HLDS start in screen automatically so that I can SSH to the server and view the HLDS console. If anyone can tell me how to do this it would be great. What I Kahless and I need is for HLDS_run to automatically start in a screen session so we can connect to it later. I have been using Linux for about a week now and don't know anything about scripting and stuff so I have no idea if I've done any of it right.
Here's what I've done...
Created a file in /home/hlds called hook with these lines:
screen -dmS hook -X ./hlds_run...yadda yadda with the rest of the HLDS switches
HLDS is installed in /home/hlds/hlds_hook and hlds_run will re-start the server if it crashes. What seems to happen is that it switches user to hlds and sits at a command prompt without continuing with any of the other lines. I've tried several variations of that script with varying results but no luck. It seems to me that if I can make this script work from the command line when logged in as root, that I can add it to rc.local and have it run when the system boots up.