diff -Nur --no-dereference e-smith-ldap-5.6.0.old/createlinks e-smith-ldap-5.6.0/createlinks --- e-smith-ldap-5.6.0.old/createlinks 2022-02-18 23:20:26.888000000 -0500 +++ e-smith-ldap-5.6.0/createlinks 2022-02-18 23:28:10.666000000 -0500 @@ -69,5 +69,7 @@ event_link("systemd-default", $event, "88"); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ldap"); event_link("ldap-update", $event , "80"); +templates2events("/etc/rsyslog.conf", $event); +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); exit 0; diff -Nur --no-dereference e-smith-ldap-5.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32ldap e-smith-ldap-5.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32ldap --- e-smith-ldap-5.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32ldap 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-ldap-5.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32ldap 2022-02-18 23:26:58.074000000 -0500 @@ -0,0 +1,4 @@ +#ldap +:programname, isequal, "slapd" /var/log/ldap/ldap.log +& stop + diff -Nur --no-dereference e-smith-ldap-5.6.0.old/root/etc/logrotate.d/ldap e-smith-ldap-5.6.0/root/etc/logrotate.d/ldap --- e-smith-ldap-5.6.0.old/root/etc/logrotate.d/ldap 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-ldap-5.6.0/root/etc/logrotate.d/ldap 2022-02-18 23:38:47.705000000 -0500 @@ -0,0 +1,11 @@ +/var/log/ldap/*.log { + daily + missingok + notifempty + delaycompress + sharedscripts + postrotate + # OpenLDAP logs via syslog, restart syslog if running + /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true + endscript +}