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 581492 Details for
Bug 817968
Automatic restart of service causes its BoundBy dependencies to stop but not start again
[?]
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]
[1/4] schedule JOB_RESTART from SERVICE_AUTO_RESTART state
service-schedule-JOB_RESTART-from-SERVICE_AUTO_RESTA.patch (text/plain), 1.20 KB, created by
David Ward
on 2012-05-01 23:15:00 UTC
(
hide
)
Description:
[1/4] schedule JOB_RESTART from SERVICE_AUTO_RESTART state
Filename:
MIME Type:
Creator:
David Ward
Created:
2012-05-01 23:15:00 UTC
Size:
1.20 KB
patch
obsolete
>From 871066f443a1b83d00df314e019797a14aea50a8 Mon Sep 17 00:00:00 2001 >From: David Ward <david.ward@ll.mit.edu> >Date: Mon, 2 Apr 2012 23:45:35 -0400 >Subject: [PATCH] service: schedule JOB_RESTART from SERVICE_AUTO_RESTART state > >Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45511 >--- > src/service.c | 9 ++++++--- > 1 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/src/service.c b/src/service.c >index 8b5c0b0..bf2e0a9 100644 >--- a/src/service.c >+++ b/src/service.c >@@ -2208,9 +2208,12 @@ static void service_enter_restart(Service *s) { > goto fail; > } > >- service_enter_dead(s, SERVICE_SUCCESS, false); >- >- if ((r = manager_add_job(UNIT(s)->manager, JOB_START, UNIT(s), JOB_FAIL, false, &error, NULL)) < 0) >+ /* Any units that are bound to this service must also be >+ * restarted. We use JOB_RESTART (instead of the more obvious >+ * JOB_START) here so that those dependency jobs will be added >+ * as well. */ >+ r = manager_add_job(UNIT(s)->manager, JOB_RESTART, UNIT(s), JOB_FAIL, false, &error, NULL); >+ if (r < 0) > goto fail; > > log_debug("%s scheduled restart job.", UNIT(s)->id); >-- >1.7.4.1 >
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 817968
: 581492 |
581494
|
581495
|
581496