Bug 794937 - init.d script does not know how many thin processes are running
Summary: init.d script does not know how many thin processes are running
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infrastructure
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-17 23:47 UTC by Jeff Weiss
Modified: 2019-09-26 13:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-03 09:18:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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)


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