I have an application, hlds_amd (half-life dedicated server) that I run via a script hlds_run, which I've posted here in case anyone wants to look at it:
http://ooksserver.no-ip.info/~half-life/hlds_run
the problem is that when the program segfaults, it just sits there with this as the last line in the console:
./hlds_run: line 321: 3329 Segmentation fault $HL_CMD
This is not an uncommon problem, and it is not likely that any code bugs will be fixed, we just have to live with it. The problem is that the script hlds_run does not keep going and restart the server, it just sits there with the segfault message on the console until I come along and kill it.
So, my question is, how can I get it to terminate and restart? I don't really need everything that is in hlds_run, would a simpler version of this work better? I don't have a lot of expertise with shell scripts (is that what you call them), so I'm not quite sure what to do with it.
I'm running Slackware 12.2, 2.6.27.7 kernel