/[smeserver]/rpms/smeserver-mysql/sme10/smeserver-mysql-2.7.0-bz11953-mysql.init-logging.patch
ViewVC logotype

Contents of /rpms/smeserver-mysql/sme10/smeserver-mysql-2.7.0-bz11953-mysql.init-logging.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Jul 11 15:56:57 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mysql-2_7_0-16_el7_sme, smeserver-mysql-2_7_0-19_el7_sme, smeserver-mysql-2_7_0-18_el7_sme, smeserver-mysql-2_7_0-21_el7_sme, smeserver-mysql-2_7_0-17_el7_sme, smeserver-mysql-2_7_0-20_el7_sme, HEAD
* Mon Jul 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-16.sme
- use dedicated log file for *mysql.init [SME: 11953]

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 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed