8
6
I have a Java server process which runs native code and the possibility of the entire process crashing due to a problem in native code is always there. Is there any mechanism offered by *nix operating systems wherein I can make the process re-spawn itself when it exists abnormally (exit status != 0)?
Is there any tool/utility out there which can automate this task for any kind of process by providing a certain level of control/configuration at the same time?
Works nice! One more question: is there any tool/utility out there which can automate this task for any kind of process by providing a certain level of control/configuration at the same time? – sasuke – 2010-12-18T18:08:12.643
Sounds like something I should write :-D – Andy Smith – 2010-12-18T19:34:35.660
You really should I guess ;-) BTW, up-voted and accepted. – sasuke – 2010-12-19T06:31:15.293
You may also want to look at using crontab to monitor your process. This script will also survice a reboot. http://servermonitoringhq.com/blog/how_to_keep_a_job_running_in_linux
– Ian Purton – 2012-02-03T11:56:27.140