Bug 475044 - Config file renamed in package, binary cannot find it
Summary: Config file renamed in package, binary cannot find it
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: monit
Version: el5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Stewart Adam
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: ActualBug
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-07 00:29 UTC by Fredrik Rambris
Modified: 2009-07-18 17:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-18 17:52:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Updates monitor.h to define MONITRC as "monit.conf" instead of "monitrc" (379 bytes, patch)
2008-12-07 00:29 UTC, Fredrik Rambris
no flags Details | Diff

Description Fredrik Rambris 2008-12-07 00:29:45 UTC
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):


How reproducible:
Every time

Steps to Reproduce:
1. Start monit
2. run  monit status
  
Actual results:


Expected results:


Additional info:
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

Comment 1 Stewart Adam 2008-12-23 03:22:09 UTC
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.

Comment 2 Fredrik Rambris 2009-07-18 16:26:06 UTC
Confirmed working. Thank you.


Note You need to log in before you can comment on or make changes to this bug.