Are you running multiple servers per machine with that running? Cause ps
auxwww will cause it to recognize all servers runnin g on the machine and
not just the one users. Also are you running this on FBSD?

Thanks
Jeremy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
shrodingers_catfish_uk
Sent: Thursday, August 07, 2003 2:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlds_linux] Restart Cron


This one works for us.

#!/bin/sh

hldir="/path/to/hlds_l/"
cd $hldir
process=`ps auxwww | grep ./hlds_run | grep -v grep | awk '{print $6}'`

if [ -z $process ]; then
  echo "Couldn't find CS running. Restarting it"
  nohup /path/to/hlds_l/hl_start_script.sh
  echo "ok"
fi


_______________________________________________
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