1 |
diff -Nur --no-dereference smeserver-mysql-2.7.0.old/createlinks smeserver-mysql-2.7.0/createlinks |
2 |
--- smeserver-mysql-2.7.0.old/createlinks 2022-07-11 11:33:21.472000000 -0400 |
3 |
+++ smeserver-mysql-2.7.0/createlinks 2022-07-11 11:54:37.014000000 -0400 |
4 |
@@ -99,9 +99,11 @@ |
5 |
|
6 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb"); |
7 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init"); |
8 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |
9 |
# Move all database dumps except for mysql.dump to sql/init |
10 |
event_link("mysql-load-tables", $event, "40"); |
11 |
templates2events("/etc/e-smith/sql/init/10mysql_upgrade", $event); |
12 |
+templates2events("/etc/rsyslog.conf", $event); |
13 |
|
14 |
# systemd-specific action mandatory for this package-update event |
15 |
event_link("systemd-reload", $event, "89"); |
16 |
diff -Nur --no-dereference smeserver-mysql-2.7.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32mysqlinit smeserver-mysql-2.7.0/root/etc/e-smith/templates/etc/rsyslog.conf/32mysqlinit |
17 |
--- smeserver-mysql-2.7.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32mysqlinit 1969-12-31 19:00:00.000000000 -0500 |
18 |
+++ smeserver-mysql-2.7.0/root/etc/e-smith/templates/etc/rsyslog.conf/32mysqlinit 2022-07-11 11:52:39.157000000 -0400 |
19 |
@@ -0,0 +1,14 @@ |
20 |
+# *-mysql.init |
21 |
+:programname, isequal, "mysql.init" /var/log/mysql.init/mysql.init.log |
22 |
+& stop |
23 |
+:programname, isequal, "mariadb105-mysql.init" /var/log/mysql.init/mariadb105-mysql.init.log |
24 |
+& stop |
25 |
+:programname, isequal, "mariadb103-mysql.init" /var/log/mysql.init/mariadb103-mysql.init.log |
26 |
+& stop |
27 |
+:programname, isequal, "mariadb102-mysql.init" /var/log/mysql.init/mariadb102-mysql.init.log |
28 |
+& stop |
29 |
+:programname, isequal, "mariadb101-mysql.init" /var/log/mysql.init/mariadb101-mysql.init.log |
30 |
+& stop |
31 |
+:programname, isequal, "mysql57-mysql.init" /var/log/mysql.init/mysql57-mysql.init.log |
32 |
+& stop |
33 |
+ |
34 |
diff -Nur --no-dereference smeserver-mysql-2.7.0.old/root/etc/logrotate.d/mysqlinit smeserver-mysql-2.7.0/root/etc/logrotate.d/mysqlinit |
35 |
--- smeserver-mysql-2.7.0.old/root/etc/logrotate.d/mysqlinit 1969-12-31 19:00:00.000000000 -0500 |
36 |
+++ smeserver-mysql-2.7.0/root/etc/logrotate.d/mysqlinit 2022-07-11 11:40:23.599000000 -0400 |
37 |
@@ -0,0 +1,9 @@ |
38 |
+/var/log/mysql.init/*.log { |
39 |
+ create 640 root root |
40 |
+ notifempty |
41 |
+ daily |
42 |
+ rotate 3 |
43 |
+ missingok |
44 |
+ compress |
45 |
+} |
46 |
+ |