Bug 499025

Summary: pki-tps and pki-ra startup script needs to loop on pid file availability
Product: [Retired] Dogtag Certificate System Reporter: Chandrasekar Kannan <ckannan>
Component: Execution Management (start/stop/restart)Assignee: Matthew Harmsen <mharmsen>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: awnuk, benl, jmagne
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: 2009-07-22 23:34:52 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: 443788    
Attachments:
Description Flags
RA and TPS start/stop scripts
none
RA and TPS start/stop scripts (spec files) none

Description Chandrasekar Kannan 2009-05-04 20:35:15 UTC
[root@zeta logs]# service pki-tps restart
Stopping pki-tps:                                          [  OK  ]
Starting pki-tps:                                          [  OK  ]

pki-tps is stopped


Currently if the pid file is not available, you will see pki-tps is stopped. 
but the pid file does become available a few seconds later.

1 - as a temporary fix, add more sleep
2 - as a long-term fix, see if we can loop (for a while like 60 seconds) to see
    if the pid becomes available. if not time out and print error.

Comment 1 Matthew Harmsen 2009-05-12 16:48:12 UTC
Created attachment 343627 [details]
RA and TPS start/stop scripts

Comment 2 Matthew Harmsen 2009-05-12 16:48:41 UTC
Created attachment 343628 [details]
RA and TPS start/stop scripts (spec files)

Comment 3 Andrew Wnuk 2009-05-12 16:51:29 UTC
attachment (id=343627)
attachment (id=343628)
+awnuk

Comment 4 Matthew Harmsen 2009-05-12 16:54:53 UTC
cd pki/base

% svn status | grep -v ^$ | grep -v ^P | grep -v ^X | grep -v ^?
M      ra/etc/init.d/httpd
M      tps/etc/init.d/httpd

% svn commit
Sending        base/ra/etc/init.d/httpd
Sending        base/tps/etc/init.d/httpd
Transmitting file data ..
Committed revision 442.


cd pki/dogtag

% svn status | grep -v ^$ | grep -v ^P | grep -v ^X | grep -v ^?
M      ra/pki-ra.spec
M      tps/pki-tps.spec

% svn commit
Sending        dogtag/ra/pki-ra.spec
Sending        dogtag/tps/pki-tps.spec
Transmitting file data ..
Committed revision 443.