[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [LONG] Re: LDAP Server backups
On Fri, 16 Mar 2001 wesley.craig@umich.edu wrote:
> I have a question and a comments. First, does killproc on linux wait
> for the process to die?
"Linux" can mean many things. On RedHat 6.2, no. Worse, it'll kill -9 slapd
if it takes more that 0.1 seconds to die. What's that likely to do to your
database? You might want to run killall -w with a timeout instead.
Here's the fragment from /etc/rc.d/init.d/functions.
kill -TERM $pid
usleep 100000
if ps h $pid >/dev/null 2>&1 ; then
sleep 1
if ps h $pid >/dev/null 2>&1 ; then
sleep 3
if ps h $pid >/dev/null 2>&1 ; then
kill -KILL $pid
fi
> Second, our "private" slave also thinks it is a master, and so creates
> a relog. We have a cron job that saves the replog each hour for a
> week. With a weeks worth of ldifs and relogs, we can recreate the
> database at any point in the week. This offers us protection from
What does your cron job do to rotate the replog safely? I've just been
moving it then kill -HUP.
--
Rich Graves <rcgraves@brandeis.edu>
UNet Systems Administrator