2010/7/27 Jonathan Clarke <[email protected]>:
> Hi,
>
> The LTB OpenLDAP RPMs include a useful logrotate script
> (/etc/logrotate.d/openldap). Thanks to whoever thought of that :)
>
> I'm a bit confused though, as it includes this:
>
>    postrotate
>        # reload syslog
>        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
> || true
>        /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null
> || true
>        # only restart if slapd is really running
>        if test -n "`ps acx|grep slapd`"; then
>                /sbin/service slapd restart
>        fi
>    endscript
>
> I agree completely with sending a SIGHUP to syslogd after changing the
> files. But why also restart slapd? Is this really necessary? I'm pretty sure
> that slapd continues sending logs to syslogd, and that sending it a HUP is
> sufficient to ensure that log files continue to be writte to.
>
> Is there another reason for this? If the answer is no, I'll open a bug
> report and commit a simple patch.
>

Hi,

I added this because I add problems with log rotation and OpenLDAP.
What I remember is that OpenLDAP was not writing in the new logfile
after rotation. Maybe it is no more the case, but it needs tests
before patching this.

Clément.
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to