LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-28-2004, 11:46 PM   #1
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Rep: Reputation: 30
restart application if it dies


i have installed x11vnc ... and it works perfectly.. i have it starting up when x is started, but the only problem is that if a client disconnects the server service dies... so i have to type x11vnc in the console again for the server to be restarted..

is there a way i can set it to restart if this happens?

cheers
Jurgen
 
Old 09-29-2004, 12:40 AM   #2
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
I do a simlar thing with webmin.

I run the following via cron every 5 mins:

Code:
[ -z "`ps -A | grep miniserv.pl`" ] && /etc/webmin/start
You will need to replace miniserv.pl with whatever the process is called and /etc/webmin/start with the command to start x11vnc.

However, I suspect there is an option so that x11vnc does not end when the last client disconnects - I don't actually know x11vnc.

Use both and you'll cover about as many situations as you can.
 
Old 09-29-2004, 01:31 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
http://www.yolinux.com/HOWTO/Process-Monitor-HOWTO.html
Has a few nice other methods than the cron-job...


Cheers,
Tink
 
Old 09-30-2004, 03:29 PM   #4
N_A_J_M
Member
 
Registered: Aug 2002
Location: Whangarei New Zealand
Distribution: Slack 8.1
Posts: 300

Original Poster
Rep: Reputation: 30
awesome, cheers guys thats just what i am after!!
 
Old 09-30-2004, 06:18 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Pleasure mate! :)

How's Whangarei today?

Btw, are you German or something? Just
because of your name... :)


Cheers,
Tink
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x server dies...dies...dead! aquaboot Linux - Software 2 08-28-2005 11:54 AM
how to link helpblocks application to gtk application m.harshavardhan Linux - Software 0 08-16-2005 08:39 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
Maxtor drive dies after each restart... mxk Linux - Hardware 3 06-23-2004 01:15 AM
deamon dies rmr2001 Linux - Newbie 0 01-09-2002 07:38 PM


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

Main Menu
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