[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Seamless restarts
- To: openldap-devel@OpenLDAP.org
- Subject: Re: Seamless restarts
- From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
- Date: Wed, 22 Jan 2003 22:58:32 +0100
- In-reply-to: <000b01c29664$c6794ed0$0e01a8c0@CELLO>
- References: <HBF.20021127ddsx@bombur.uio.no> <000b01c29664$c6794ed0$0e01a8c0@CELLO>
Howard Chu writes:
>> For that matter, we might not even need to exec() slapd again, but
>> personally I'd prefer to do that anyway, in case the restart is done
>> because the slapd executable has been replaced with a newer version.
>
> Right. The exec() is definitely necessary for upgrade purposes.
Turns out that if we exec(), we'll need to write all the Listener
structs through a pipe from the old slapd to the new one. Otherwise,
if something has changed in DNS since the original slapd started,
daemon.c:slap_open_listener() can create Listener structs which do not
match the listener file descriptors.
I'm not going to bother doing that just yet, though I've been thinking I
may write some restart code soon. So I might just implement a simple
restart now which does not exec(), and just note in the documentation
that it might be changed later to exec().
--
Hallvard