質問

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