Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 883445 Details for
Bug 1084836
pulp-server init script returns wrong exit code with 'status' argument when it's stopped
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
The patch for /etc/rc.d/init.d/pulp-server to make it compatible with LSB init script spec.
pulp-server.init.diff (text/plain), 1.53 KB, created by
Satoru SATOH
on 2014-04-07 02:35:28 UTC
(
hide
)
Description:
The patch for /etc/rc.d/init.d/pulp-server to make it compatible with LSB init script spec.
Filename:
MIME Type:
Creator:
Satoru SATOH
Created:
2014-04-07 02:35:28 UTC
Size:
1.53 KB
patch
obsolete
>--- /etc/rc.d/init.d/pulp-server.save 2014-04-06 23:25:04.708001581 +0900 >+++ /etc/rc.d/init.d/pulp-server 2014-04-07 02:26:56.016001675 +0900 >@@ -47,16 +47,37 @@ > } > > stop() { >- $SERVICE httpd stop >- $SERVICE qpidd stop >- $SERVICE mongod stop >+ $SERVICE httpd stop; httpd_rc=$? >+ $SERVICE qpidd stop; qpidd_rc=$? >+ $SERVICE mongod stop; mongod_rc=$? >+ >+ RETVAL=1 >+ if test $httpd_rc = 0 -a $qpidd_rc = 0; then >+ if test $mongod_rc = 0; then >+ RETVAL=0 >+ fi >+ fi > return $RETVAL > } > > status() { >- $SERVICE mongod status || RETVAL=$? >- [ $RETVAL = 0 ] && $SERVICE httpd status || RETVAL=$? >- [ $RETVAL = 0 ] && $SERVICE qpidd status || RETVAL=$? >+ $SERVICE mongod status; mongod_rc=$? >+ $SERVICE qpidd status; qpidd_rc=$? >+ $SERVICE httpd status; httpd_rc=$? >+ >+ if test $mongod_rc = 0 -a $qpidd_rc = 0; then >+ if test $httpd_rc = 0; then >+ RETVAL=0 >+ else >+ RETVAL=1 >+ fi >+ elif test $mongod_rc = 3 -a $qpidd_rc = 3; then >+ if test $httpd_rc = 3; then >+ RETVAL=3 >+ else >+ RETVAL=1 >+ fi >+ fi > return $RETVAL > } > >@@ -74,12 +95,16 @@ > stop > ;; > restart) >- stop >- start >+ stop && start >+ ;; >+ try-restart | reload | force-reload) >+ echo $"Not implemented: $@" >+ RETVAL=3 > ;; > *) > echo $"Usage: pulp-server {init|start|stop|status|restart}" >- RETVAL=3 >+ RETVAL=2 >+ ;; > esac > > exit $RETVAL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1084836
:
883444
| 883445