| Summary: | iwhd initscript continues on in the face of failure | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Chris Lalancette <clalance> | ||||
| Component: | iwhd | Assignee: | jrd <jrd> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 0.3.1 | CC: | dajohnso, deltacloud-maint, meyering, mkoci, ssachdev | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | --- | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Chris Lalancette
2011-06-01 17:50:19 UTC
Thanks for the report, Chris.
Here's the probable patch. Does it solve your problem?
diff --git a/iwhd.init.in b/iwhd.init.in
index 59d4032..47f9ceb 100644
--- a/iwhd.init.in
+++ b/iwhd.init.in
@@ -73,7 +73,8 @@ start() {
mkdir -p @localstatedir@/cache/iwhd
rm -rf @localstatedir@/cache/iwhd/*
printf %s $"waiting for mongod to listen on $MONGOD_SERVER_SPEC"
- wait_for_mongod $MONGOD_N_SECONDS && echo_success || echo_failure
+ wait_for_mongod $MONGOD_N_SECONDS && echo_success \
+ || { echo_failure; echo; return 1; }
echo
printf %s $"Starting $SERVICE daemon: "
Created attachment 502362 [details]
Here's a complete patch.
I've attached a complete patch.
Looks good to me. And I see you have now committed it. Thanks! Chris Lalancette This is good to go in commit 9e86ebf939a68c37c04004e8248013aab8f8cbb9, moving to verified. release pending... release pending... closing out old bugs perm close |