Cool a single line, now that knowing Linux. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Agent Smith 2.0 Sent: June 24, 2002 3:01 PM To: [EMAIL PROTECTED] Subject: Re: [hlds_linux] Starting hlds_l at system startup
Hi! At 09:23 25.06.2002 +1200, Jeremy Brooking wrote: > > Instead of starting half-life at system runtime, it might be better > > to use the hl user's crontab. I do this and it works well. >[..] > > */1 * * * * nice /games/half-life/run.sh > /dev/null 2>&1 We also use the crondaemon to do this. The restart feature didnt work very well for us. After a crash sometimes hlds kept hanging, consuming 100% of the cpu time. One a of my clan members is a linux guru and made this one-liner(for use with cron): * * * * * ps ax | grep -i hlds | grep -v grep >/dev/null || /path/to/hlds_start >/dev/null It does the same thing like Jeremy's solution: check every minute if the hlds screen is still running, if not, execute the startscript hlds_start hlds_start is just a simple script to start a screen for the hlds: cd /path/to/hlds_l screen -A -m -d -S hlds ./hlds_run -game cstrike -norestart +map de_dust2 -pingbooster 2 +maxplayers 16 ~~~~~ Agent Smith 2.0 <[EMAIL PROTECTED]> IWT - Institut f�r wuerdevolles Toeten ~ http://www.iwt-clan.de ~~~~~ "it was your primitive human cerebrum that could not accept a perfect world and kept trying to wake up from it." _______________________________________________ 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

