[Freeipa-devel] [PATCH] 500 Fix shutdown issues with systemd

Simo Sorce simo at redhat.com
Mon Oct 22 21:39:39 UTC 2012


On Fri, 2012-10-19 at 14:15 -0400, Rob Crittenden wrote:
> Simo Sorce wrote:
> > On Fri, 2012-10-19 at 13:47 -0400, Rob Crittenden wrote:
> >> Simo Sorce wrote:
> >>> On Thu, 2012-10-18 at 11:51 -0400, Rob Crittenden wrote:
> >>>> Simo Sorce wrote:
> >>>>> On Thu, 2012-10-18 at 11:37 -0400, Rob Crittenden wrote:
> >>>>>> Simo Sorce wrote:
> >>>>>>> Also improve shutdown reliability and restart behavior so we always kill
> >>>>>>> all the processes we started even if the list of processes to handle
> >>>>>>> changed in LDAP.
> >>>>>>>
> >>>>>>> Fixes: https://fedorahosted.org/freeipa/ticket/2302
> >>>>>>
> >>>>>> Should this list be updated if we do a post-install of DNS or the CA? It
> >>>>>> isn't now which would leave some services running.
> >>>>>
> >>>>> Yes we probably should,
> >>>>> but I think it should be done as a separate ticket.
> >>>>>
> >>>>> Simo.
> >>>>>
> >>>>
> >>>> What's the impact if we don't do this now?
> >>>
> >>> some services will not be turned off by ipactl, however this shouldn't
> >>> impact much at shutdown, as systemd will shutdown left over stuff as it
> >>> keeps track of all processes.
> >>>
> >>> uhmm however if someone does a ipactl restart those services will not be
> >>> restarted the first time it is run (we will tell systemd to start them
> >>> but it will do likely nothing as they are already started), after that
> >>> they will be handled as they fact they are enabled will be stored in the
> >>> file.
> >>
> >> Well, what is the downside of a call to refresh the list of running
> >> services that should be run at the end of setting up new services?
> >>
> >> Otherwise we could find outselves with a bunch of unreproducible cases
> >> where things weren't start/stopped properly.
> >
> > Yeah I have been thinking about that.
> > I am thinking of changing the patch so that it's the service class
> > itself that saves this data.
> >
> > That way saving is always performed no matter 'what' starts the service.
> > Do you agree ?
> >
> 
> Yes, that sounds like it'll be very robust.

Ok I created 3 new patches that replace the previous one.

The first 2 patches lay groundwork to have the service class save in the
services.list file.
The last one changes ipactl to actually use the file.

Simo.


-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-500-1-Preserve-original-service_name-in-services.patch
Type: text/x-patch
Size: 5879 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121022/040d5ee9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-501-1-Save-service-name-on-service-startup.patch
Type: text/x-patch
Size: 4414 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121022/040d5ee9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-simo-502-2-Get-list-of-service-from-LDAP-only-at-startup.patch
Type: text/x-patch
Size: 12063 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121022/040d5ee9/attachment-0002.bin>


More information about the Freeipa-devel mailing list