LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 12-25-2005, 12:10 AM   #1
houssamfarag
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
howto autostart an app when it crashs or killed


Hi
i am running mandriva 2006 and running something like a web based server with a certain application not a service
and the application sometimes crash or killed
how can i monitor this application and autostart it if killed

thanks a lot
 
Old 12-25-2005, 12:15 AM   #2
fsateler
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Debian Unstable
Posts: 107

Rep: Reputation: 15
this little trick might do it. Run the application through this shell script:
Code:
while true
do
    <command> <options>
done
 
Old 12-26-2005, 11:49 AM   #3
houssamfarag
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Original Poster
Rep: Reputation: 0
it script keep running the program with non stop

also i have tried procautostart and the same apprantly they all see it dead

any sugestions
 
Old 12-27-2005, 05:22 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
You can try Dan Berstein's daemontools. There is no Mandriva package for it AFAICT but it shouldn't be too hard to build from source: http://cr.yp.to/daemontools.html

A better solution though would be to find out why it keeps crashing and stop it from doing 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
howto monitor process and autostart if killed houssamfarag Red Hat 1 12-23-2005 11:02 AM
X (gnome) crashs after installing webmin mht Linux - Software 2 07-08-2005 01:46 PM
Slack 10 2.6.7 crashs in 30sec happyg13 Slackware 1 11-13-2004 05:51 PM
Cedega: SWG Crashs at Launchpad acruz Linux - Games 0 07-23-2004 10:38 AM
Computer crashs when I'm away for a while cgr122 Slackware 6 02-02-2004 08:51 AM


All times are GMT -5. The time now is 01:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration