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.

Thanks,
Jonathan
--
--------------------------------------------------------------
Jonathan Clarke - [email protected]
--------------------------------------------------------------
Ldap Synchronization Connector (LSC) - http://lsc-project.org
--------------------------------------------------------------
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to