LinuxQuestions.org
Help answer threads with 0 replies.
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 07-20-2006, 05:20 PM   #1
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Rep: Reputation: 15
Automate Application Restart


Hey everyone,

I was curious if this is possible within Linux.

I have an application that runs on my Linux server. It has the tendency to crash every now and then. I was curious if it is possible to automate a restart for this program if it crashes on me.

Has anyone fooled around with this before? If you need any info let me know

Thanks in advance for your help!

Wes
 
Old 07-20-2006, 05:46 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
I'm sure there is a much better way, but off of the top of my head, you could have a cron job running every so often checking to see if your app is running and if not, start it.
 
Old 07-20-2006, 06:24 PM   #3
wfernley
Member
 
Registered: Apr 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Well the only thing is, is that it doesnt run in the background. When it runs it takes up with window. You can do nothing else while it runs :S

Would the cron still work for that?
 
  


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
restart application if it dies N_A_J_M Linux - General 4 09-30-2004 06:18 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
How would I automate this? onewhoknows Linux - Newbie 5 06-22-2004 04:49 AM
automate installations alaios Slackware 6 05-29-2004 03:26 AM
Automate PPPD ashleyfrazer Linux - Networking 16 10-28-2002 10:42 AM

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

All times are GMT -5. The time now is 12:06 PM.

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