Hi,
I have a server process which is deployed now, and I want to keep my server running.
In case, if that process crashed by some means, either some exception or any other technical flow, then I need it to be restart again.
For this, I have created another process which keep checking(e.g, every 2 minutes) in processes list for this particular process name, and in case, if not found, it will start that process.
I have implemented this solution, but I know its not a good idea, I believe there must be some better ideas for this job. Can you help me is it best approach, or suggest some better one?
Thanks.