[ejabberd] monitoring ejabberd with "monit"
alexey at sevcom.net
Wed Nov 10 17:49:37 MSK 2004
On Wed, 10 Nov 2004 02:33:38 +0100, you said:
AvC> I've discovered the excellent "monit" daemon, which can restart other
AvC> daemons when they crash. It works very well for the jabber transports and
AvC> for my caching dns server etc. Everything gets restarted automagically.
There is "-heart" option for erl, it do similar work -- when node dies or
doesn't answer pings, it is atomatically restarted.
AvC> The only problem is, it requires a pid file for every daemon that will be
AvC> watched, and I don't know how to create one for ejabberd with an init
AvC> The init script launches erl, but erl in turn launces beam! And it's
AvC> beam's pid that should go in the /var/run/ejabberd.pid file, I think.
It seems there is no standard way to do it in erlang. And that beam process
can run other processes, e.g. ssl_esock.
More information about the ejabberd