For more information about configure. in And makefile. am (online waiting)-Linux Enterprise Application-Linux server application, see the following. [I = s] This post was last edited by liudayang21
Hello everyone! Now I am studying how to add a new service process monitoring function on Heartbeat. I have basically written this servmonitor module, but how can I add this module to the original Open Source Heartbeat, this involves configure. in And makefile. am changes, but the younger brother is not very clear about the structure. Please consult experts here!
The file structure of my module is as follows:
Servmonitor:
Servmonitor. c
Readconfig. h
Pidof. h
Readservicemonitor. log // log File
Readservicerestart. log // log File
Monitor_log.txt // Log File
Start // sub-folder to store script files
Ftpd_monitor.sh
Ftpd_restart.sh
Httpd_monitor.sh
Httpd_restart.sh
Now you need to write the configure. in And Makefile. am files under the servmonitor directory, and then write a Makefile. am file under the start subdirectory.
Two files in the original Heartbeat root directory are shown in the attachment: