문제

I'm writing a system/service monitoring software, and my primary goal is to make it as failsafe as possible.

Right now, I have a binary script which starts the master process, which forks off children which do the actual monitoring and reporting. The master only manages the restarting of children if they fail, and some communication between the children.

Given this level of failsafe, is it advisable to add another layer of monitoring for the master process?

Supposing my code is in a high level language (python et al.), would it make sense to wrap my software in a initscript or shellscript which watches it, or would it be redundant?

도움이 되었습니까?

해결책

This reminds me of this old worm that would consist of 2 processes. If one of the processes was killed, the other one would respawn it and vice versa.

If this software is supposed to run on linux you can simply use /etc/inittab with the respawn option.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top