Bug 794937

Summary: init.d script does not know how many thin processes are running
Product: Red Hat Satellite Reporter: Jeff Weiss <jweiss>
Component: InfrastructureAssignee: Lukas Zapletal <lzap>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, dajohnso
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-03 09:18:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff Weiss 2012-02-17 23:47:48 UTC
Description of problem:
editing /etc/katello/thin.yml to change the # of thin servers requires that the service already be stopped, because the stop command will only try to stop the number of servers that it finds in this file

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Start katello
2. edit /etc/katello/thin.yml, set servers to one less than there is now
3. service katello restart
  
Actual results:
[root@katello-ci-rhel62 certs]# service katello restart
Stopping server on 0.0.0.0:5000 ... 
Sending QUIT signal to process 4144 ... 
>> Exiting!
Stopping server on 0.0.0.0:5001 ... 
Sending QUIT signal to process 4148 ... 
>> Exiting!
Stopping server on 0.0.0.0:5002 ... 
Sending QUIT signal to process 4152 ... 
>> Exiting!
Starting katello: katello is already running.              [  OK  ]
[root@katello-ci-rhel62 certs]# killall thin
[root@katello-ci-rhel62 certs]# service katello start
Starting katello: Starting server on 0.0.0.0:5000 ... 
Starting server on 0.0.0.0:5001 ... 
Starting server on 0.0.0.0:5002 ... 
                                                           [  OK  ]


Expected results:
clean shutdown

Additional info:

Comment 1 Lukas Zapletal 2012-08-03 09:18:01 UTC
Since we will be moving to mod_passenger, I have added this comment there:

# stop katello prior changing servers option
servers = X

RHBZ 752863 - katello service will return "OK" on error (7d1da2ed)