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