Red Hat Bugzilla – Bug 475044
Config file renamed in package, binary cannot find it
Last modified: 2009-07-18 13:52:47 EDT
Created attachment 326023 [details]
Updates monitor.h to define MONITRC as "monit.conf" instead of "monitrc"
Description of problem:
The RPM package installs the config file (monitrc) into /etc/monit.conf. The monit binary looks for /etc/monitrc. When running monit to control the running instance one has to specify /etc/monit.conf explicitly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start monit
2. run monit status
Either let the file be called /etc/monitrc or patch the software on build (patch attached) so that it looks for monit.conf instead of monitrc
Thanks for the patch. I've submitted monit-4.10.1-8 for building which incorporates this patch as well as sets some more reasonable defaults (logging, daemon mode, includes /etc/monit.d) - let me know if the problem's fixed.
Confirmed working. Thank you.