From 4a5be9201a5b122082caefe04346fe804115d856 Mon Sep 17 00:00:00 2001 From: Nick Vyzas Date: Mon, 1 Apr 2019 13:38:02 +0300 Subject: [PATCH] Fix for error log issue --- .../proxysql/deb-compliant/bionic-package/ctl/proxysql.ctl | 2 +- docker/images/proxysql/deb-compliant/ctl/proxysql.ctl | 2 +- etc/logrotate.d/proxysql | 2 +- etc/proxysql.cnf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/images/proxysql/deb-compliant/bionic-package/ctl/proxysql.ctl b/docker/images/proxysql/deb-compliant/bionic-package/ctl/proxysql.ctl index 57ef54095b..aa33787ad4 100644 --- a/docker/images/proxysql/deb-compliant/bionic-package/ctl/proxysql.ctl +++ b/docker/images/proxysql/deb-compliant/bionic-package/ctl/proxysql.ctl @@ -11,7 +11,7 @@ Architecture: amd64 # Readme: README.md Files: proxysql /usr/bin/ etc/proxysql.cnf /etc/ - etc/logrotate.d/proxysql /etc/logrotate.d/proxysql + etc/logrotate.d/proxysql /etc/logrotate.d/ systemd/system/proxysql.service /lib/systemd/system/ tools/proxysql_galera_checker.sh /usr/share/proxysql/tools/ tools/proxysql_galera_writer.pl /usr/share/proxysql/tools/ diff --git a/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl b/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl index d3c7aab7ec..3e47657975 100644 --- a/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl +++ b/docker/images/proxysql/deb-compliant/ctl/proxysql.ctl @@ -11,7 +11,7 @@ Architecture: amd64 # Readme: README.md Files: proxysql /usr/bin/ etc/proxysql.cnf / - etc/logrotate.d/proxysql /etc/logrotate.d/proxysql + etc/logrotate.d/proxysql /etc/logrotate.d/ systemd/system/proxysql.service /lib/ tools/proxysql_galera_checker.sh /usr/share/proxysql/ tools/proxysql_galera_writer.pl /usr/share/proxysql/ diff --git a/etc/logrotate.d/proxysql b/etc/logrotate.d/proxysql index 1b830f8dbe..c43c9353bf 100644 --- a/etc/logrotate.d/proxysql +++ b/etc/logrotate.d/proxysql @@ -1,4 +1,4 @@ -/var/log/proxysql.log { +/var/lib/proxysql/proxysql.log { missingok notifempty copytruncate diff --git a/etc/proxysql.cnf b/etc/proxysql.cnf index 6beb92e2f3..833713d559 100644 --- a/etc/proxysql.cnf +++ b/etc/proxysql.cnf @@ -32,7 +32,7 @@ ######################################################################################## datadir="/var/lib/proxysql" -errorlog="/var/log/proxysql.log" +errorlog="/var/lib/proxysql/proxysql.log" admin_variables= {