Bug 602603
Summary: | RFE: Monitor a "service" process only if it was already started | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Toralf <bugzilla> |
Component: | monit | Assignee: | Stewart Adam <s.adam> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | el5 | CC: | s.adam |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-06-21 19:05:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Toralf
2010-06-10 09:49:01 UTC
I also hoped that the following might be used as a workaround: check process someservice with pidfile /var/run/someservice.pid start program = "/etc/init.d/someservice start" depends servicepid check file servicepid /var/run/someservice.pid mode passive The idea being that "someservice" would not be started if it depended on a service that was missing, and couldn't be started. But apparently, the "depends" statement does not work that way - a failure in a prerequisite for a service does not prevent the service itself form being tested or restarted. So I guess you might say that "depends" doesn't set up true dependencies... (In reply to comment #1) > check process someservice with pidfile /var/run/someservice.pid > start program = "/etc/init.d/someservice start" > depends servicepid > > check file servicepid /var/run/someservice.pid Whoops. Make that "check file servicepid with path /var/run/someservice.pid" > mode passive Sorry, but I can't really help with this - please contact upstream about the RFE. However, it may be helpful to know that chkconfig creates symlinks in /etc/rc.d/rcX.d for each service you enable. Perhaps chaining a CHECK FILE will help? |