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 |
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 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. |
http://www.yolinux.com/HOWTO/Process-Monitor-HOWTO.html
Has a few nice other methods than the cron-job... Cheers, Tink |
awesome, cheers guys thats just what i am after!!
|
Pleasure mate! :)
How's Whangarei today? Btw, are you German or something? Just because of your name... :) Cheers, Tink |
All times are GMT -5. The time now is 09:11 AM. |