Bug 644302
Summary: | service cumin can be started more than once | ||
---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Lubos Trilety <ltrilety> |
Component: | cumin | Assignee: | Trevor McKay <tmckay> |
Status: | CLOSED ERRATA | QA Contact: | Jan Sarenik <jsarenik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.3 | CC: | jsarenik, matt |
Target Milestone: | 2.0 | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | cumin-0.1.4519-2.el5 | Doc Type: | Bug Fix |
Doc Text: |
Cause
The /etc/init.d/cumin script does not check to see if the cumin service is already running before starting another instance of the service when the /sbin/service cumin start command is issued.
Consequence
It is possible to unintentionally run multiple instances of cumin with new instances failing if they try to bind to the same port or succeeding if they use different ports. This will consume extra resources and log files will be interleaved.
Fix
The /etc/init.d/cumin script checks to see if the cumin service is already running before starting an instance of the service.
Result
If the service is already running, the script reports success and exits. If it is not, a new instance is started.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-23 15:40:08 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: | |||
Bug Depends On: | |||
Bug Blocks: | 693778 |
Description
Lubos Trilety
2010-10-19 11:40:13 UTC
*** This bug has been marked as a duplicate of bug 673273 *** Reopening this bug back. It is not the same. This makes sense to be fixed in 1.3.2, the other (673273) does not. Modified /etc/init.d/cumin (actually cumin/etc/sysvinit-cumin in the source tree) to check for running service and report "OK" if it is already running. Fixed in trunk, revision 4518. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause The /etc/init.d/cumin script does not check to see if the cumin service is already running before starting another instance of the service when the /sbin/service cumin start command is issued. Consequence It is possible to unintentionally run multiple instances of cumin with new instances failing if they try to bind to the same port or succeeding if they use different ports. This will consume extra resources and log files will be interleaved. Fix The /etc/init.d/cumin script checks to see if the cumin service is already running before starting an instance of the service. Result If the service is already running, the script reports success and exits. If it is not, a new instance is started. # service cumin start Starting cumin: [ OK ] # service cumin start Starting cumin: [ OK ] Is this all right? I wonder, should it fail on next try to start? Hi Jan, I tried postgresql, condor, and qpidd just to see what other services do. I am not sure there is a standard for this. I think "FAIL" is misleading, silence or OK seems to be the way to go. What is your experience with other services? With the services running, here is what these others do on RHEL5: [root@RHEL5Virt-tmckay ~]# /sbin/service postgresql start Starting postgresql service: [ OK ] [root@RHEL5Virt-tmckay ~]# /sbin/service postgresql start Starting postgresql service: [ OK ] [root@RHEL5Virt-tmckay ~]# /sbin/service condor start Starting Condor daemons: [ OK ] [root@RHEL5Virt-tmckay ~]# /sbin/service condor start # Sorry, I have trace on.... [root@RHEL5Virt-tmckay ~]# /sbin/service qpidd start Starting Qpid AMQP daemon: 2011-04-07 10:06:06 debug Forked daemon child process 2011-04-07 10:06:06 debug Forked daemon child process [ OK ] [root@RHEL5Virt-tmckay ~]# /sbin/service qpidd start Starting Qpid AMQP daemon: [root@RHEL5Virt-tmckay ~]# Condor returns to prompt, forgot to include it.
>
> [root@RHEL5Virt-tmckay ~]# /sbin/service condor start
> Starting Condor daemons: [ OK ]
> [root@RHEL5Virt-tmckay ~]# /sbin/service condor start
>
Excuse me, I think you are right, just wanted to make sure. Verified in cumin-0.1.4695-1.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0889.html |