LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 01:56 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 641

Rep: Reputation: 126Reputation: 126
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, 02:31 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 166Reputation: 166
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:44 AM
[SOLVED] How-to: Auto start-up an X Application semiRocket Slackware 6 07-03-2009 06:44 PM
Auto start an application in X VictorLemar Puppy 3 09-13-2008 12:22 AM
auto start application acrors Fedora 10 10-11-2004 12:22 PM
Auto starting an application bbereg Linux - Newbie 7 11-21-2002 05:40 PM

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

All times are GMT -5. The time now is 01:01 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