chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

angel says it restarted mmmd_mon, but it didn't. #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a wrong path to mmmd_mon in the angel conf and set it to debug
2. Stop everything
3. Start the angel

What is the expected output? What do you see instead?

It should start the daemon once, but it starts it once every 5 seconds and
claims it succeeded.

Please use labels and text to provide additional information.

[root@mysql1 mmm]# /etc/init.d/mmm_angel start
Starting mmm angel..[2008-06-16 07:54:16]: Checking service: "Monitoring
daemon for directory servers"
[2008-06-16 07:54:16]: Warning: Service '"Monitoring daemon for directory
servers"' is dead! Restarting it...
[2008-06-16 07:54:16]: Notice: Service '"Monitoring daemon for directory
servers"' has been restarted successfully

Conf file:

service mmm_mon_directory
     description "Monitoring daemon for directory servers"
     command /usr/local/mmm/mmmd_mon
     pid /usr/local/mmm/var/mmmd.pid

The problem is, the path should be /usr/local/sbin/mmmd_mon, which doesn't
exist.  But the angel should not claim it started successfully.

Original issue reported on code.google.com by baron.schwartz on 16 Jun 2008 at 1:24

GoogleCodeExporter commented 9 years ago
Oh, I mean /usr/local/mmm/mmmd_mon doesn't exist.

Original comment by baron.schwartz on 16 Jun 2008 at 1:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed in rev# 107.

Original comment by m...@pascalhofmann.de on 7 Oct 2008 at 2:43