1 |
jpp |
1.1 |
diff -Nur e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd |
2 |
|
|
--- e-smith-openssh-2.6.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 1969-12-31 19:00:00.000000000 -0500 |
3 |
|
|
+++ e-smith-openssh-2.6.0/root/etc/e-smith/templates/etc/rsyslog.conf/32sshd 2021-02-18 23:11:58.454000000 -0500 |
4 |
|
|
@@ -0,0 +1,6 @@ |
5 |
|
|
+ |
6 |
|
|
+#sshd |
7 |
jpp |
1.3 |
+if $programname == 'sshd' and $syslogfacility-text == 'authpriv' then /var/log/secure |
8 |
jpp |
1.1 |
+:programname, isequal, "sshd" /var/log/sshd/sshd.log |
9 |
jpp |
1.3 |
+& stop |
10 |
jpp |
1.1 |
+ |
11 |
|
|
diff -Nur e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd |
12 |
|
|
--- e-smith-openssh-2.6.0.old/root/etc/logrotate.d/sshd 1969-12-31 19:00:00.000000000 -0500 |
13 |
|
|
+++ e-smith-openssh-2.6.0/root/etc/logrotate.d/sshd 2021-02-18 23:13:02.453000000 -0500 |
14 |
|
|
@@ -0,0 +1,13 @@ |
15 |
|
|
+/var/log/sshd/sshd.log |
16 |
|
|
+{ |
17 |
|
|
+ missingok |
18 |
|
|
+ notifempty |
19 |
|
|
+ sharedscripts |
20 |
|
|
+ delaycompress |
21 |
|
|
+ su root root |
22 |
|
|
+ create 600 root root |
23 |
|
|
+ postrotate |
24 |
|
|
+ /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true |
25 |
|
|
+ endscript |
26 |
|
|
+} |
27 |
|
|
+ |
28 |
jpp |
1.2 |
diff -Nur e-smith-openssh-2.6.0.old/createlinks e-smith-openssh-2.6.0/createlinks |
29 |
|
|
--- e-smith-openssh-2.6.0.old/createlinks 2021-02-19 01:04:35.196000000 -0500 |
30 |
|
|
+++ e-smith-openssh-2.6.0/createlinks 2021-02-19 01:05:30.696000000 -0500 |
31 |
|
|
@@ -54,4 +54,5 @@ |
32 |
|
|
event_link("systemd-reload", $event, "89"); |
33 |
|
|
event_link("systemd-default", $event, "88"); |
34 |
|
|
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/sshd"); |
35 |
|
|
- |
36 |
|
|
+templates2events("/etc/rsyslog.conf",$event); |
37 |
|
|
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |