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 574680 Details for
Bug 809272
Service disabled due to bind failure
[?]
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]
Proposed patch
xinetd-2.3.14-retry-svc-activate-in-cps-restart.patch (text/plain), 1.98 KB, created by
Bryan Mason
on 2012-04-02 23:36:34 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Bryan Mason
Created:
2012-04-02 23:36:34 UTC
Size:
1.98 KB
patch
obsolete
>diff -Napur xinetd-2.3.14.old/xinetd/access.c xinetd-2.3.14.new/xinetd/access.c >--- xinetd-2.3.14.old/xinetd/access.c 2005-10-05 10:15:33.000000000 -0700 >+++ xinetd-2.3.14.new/xinetd/access.c 2012-02-22 20:12:09.120973124 -0800 >@@ -89,9 +89,20 @@ static void cps_service_restart(void) > msg(LOG_ERR, func, > "Activating service %s", SC_NAME(scp)); > } else { >- msg(LOG_ERR, func, >- "Error activating service %s", >- SC_NAME(scp)) ; >+ /* Try to restat the service */ >+ SVC_ATTEMPTS(sp) += 1; >+ if ( SVC_ATTEMPTS(sp) < MAX_SVC_ATTEMPTS ) { >+ msg(LOG_ERR, func, >+ "Error activating service %s, retrying %d more times...", >+ SC_NAME(scp), >+ MAX_SVC_ATTEMPTS - SVC_ATTEMPTS(sp)); >+ xtimer_add(cps_service_restart, 1); >+ } else { >+ /* Give up */ >+ msg(LOG_ERR, func, >+ "Error activating service %s", >+ SC_NAME(scp)); >+ } > } /* else */ > } > } >diff -Napur xinetd-2.3.14.old/xinetd/service.c xinetd-2.3.14.new/xinetd/service.c >--- xinetd-2.3.14.old/xinetd/service.c 2012-02-22 19:16:56.288912783 -0800 >+++ xinetd-2.3.14.new/xinetd/service.c 2012-02-22 19:25:03.059356909 -0800 >@@ -397,6 +408,7 @@ status_e svc_activate( struct service *s > * Initialize the service data > */ > SVC_RUNNING_SERVERS(sp) = SVC_RETRIES(sp) = 0 ; >+ SVC_ATTEMPTS(sp) = 0; > > if ( SC_MUST_LISTEN( scp ) ) > (void) listen( SVC_FD(sp), LISTEN_BACKLOG ) ; >diff -Napur xinetd-2.3.14.old/xinetd/xconfig.h xinetd-2.3.14.new/xinetd/xconfig.h >--- xinetd-2.3.14.old/xinetd/xconfig.h 2003-02-19 09:29:28.000000000 -0800 >+++ xinetd-2.3.14.new/xinetd/xconfig.h 2012-02-22 19:20:20.360855514 -0800 >@@ -59,6 +59,12 @@ > #define DEFAULT_LOOP_TIME 10 > > /* >+ * The number of times to attempt re-activating a service after being >+ * deactivated due to the above. >+ */ >+#define MAX_SVC_ATTEMPTS 30 >+ >+/* > * Signal-to-action mapping > */ > #ifndef RECONFIG_HARD_SIG
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 809272
: 574680 |
574681
|
574915