repoforge/rpms — pull request #147 by derektamsen (2012-04-18 08:36:12+00:00)
Title: Fixing monit.spec to correctly reference a config file of /etc/monit.conf

- Fixed monitor.h source path so it can be patched to reference /etc/monit.conf instead of /etc/monitrc
During rpmbuild -bp:
+ /usr/bin/perl -pi.orig -e 's|\bmonitrc\b|monit.conf|' monitor.h
Can't open monitor.h: No such file or directory.

- Updated /etc/init.d/monit so config path is /etc/monit.conf
Source config: /etc/monitrc

- Added /var/monit so the state and id files can be create upon monit startup
When Starting monit: Error opening the idfile '/var/monit/id' -- No such file or directory

- Updated post section to move /etc/monitrc to /etc/monit.conf for os standardization
This will migrate existing /etc/monitrc files to the os standard /etc/monit.conf

This should also address issues #112 and #113. I am also reversing the changes made via #103 as they did not work correctly. The reversal I wrote will also migrate any existing /etc/monitrc file to the standard for centos/rhel "/etc/monit.conf".