LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2010, 12:56 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
auto-restarting application problems


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
 
Old 03-17-2010, 01:31 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
When the server is segfaulted does it show up in a 'ps aux'? It sounds like the problem is more related to the fact it hasn't actually crashed yet-- rather it's hanging otherwise it would continue and restart.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set a programm auto started when the machine is restarting thomas2004ch Linux - Newbie 4 01-06-2010 09:44 AM
[SOLVED] How-to: Auto start-up an X Application semiRocket Slackware 6 07-03-2009 05:44 PM
Auto start an application in X VictorLemar Puppy 3 09-12-2008 11:22 PM
auto start application acrors Fedora 10 10-11-2004 11:22 AM
Auto starting an application bbereg Linux - Newbie 7 11-21-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration