[Kolab-devel] Re: steffen: server/perl-kolab/Kolab Kolab.pm, 1.17, 1.18

Steffen Hansen steffen at klaralvdalens-datakonsult.se
Thu Sep 9 01:56:39 CEST 2004


On Wednesday 08 September 2004 17:32, Bernhard Reiter wrote:
> On Wednesday 08 September 2004 17:19, cvs at intevation.de wrote:
> > Author: steffen
> >
> > Log Message:
> > fix for Issue379
> >
> >      if ($haschanged{'slapd'}) {
> >          &log('K', 'Restarting OpenLDAP...');
> > -        system("$prefix/bin/openpkg rc openldap stop; while test
> > -f $prefix/var/openldap/run/slurpd.pid; do sleep 1;
> > $prefix/bin/openpkg rc openldap stop; done; $prefix/bin/openpkg rc
> > openldap start");
>
> +      system("$prefix/bin/openpkg rc openldap restart &");
>
> Will that avoid all deadlocks here?

I think yes. The circular dependency is only between slurpd and kolabd 
-- no other components are involved.

> I mean the rest of the resplication will be finished which might
> cause kolabd to issue another restart command to openldap?

After slurpd receives it's signal by openldap restart it's only desire 
is so send an unbindRequest to kolabd and then die :-)

> Get's kolabd restarted by any of the configuration commands, btw?

No, kolabd never generates it's own config or restarts itself.

regards
-- 
Steffen Hansen          |       Klarälvdalens Datakonsult AB
Senior Software Engineer|       http://www.klaralvdalens-datakonsult.se
                        |
                        |       Platform-independent
                        |       software solutions




More information about the devel mailing list