diff options
| author | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
| commit | 83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch) | |
| tree | 19110702c7d740f6bd8ee4f5d2ebcb97442be237 /straper/db/public/logging/logrotate.d/mariadb | |
| parent | 51d43498b07dc97d795947964534f0903cd05db5 (diff) | |
| download | bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip | |
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'straper/db/public/logging/logrotate.d/mariadb')
| -rw-r--r-- | straper/db/public/logging/logrotate.d/mariadb | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/straper/db/public/logging/logrotate.d/mariadb b/straper/db/public/logging/logrotate.d/mariadb deleted file mode 100644 index 985c7c2..0000000 --- a/straper/db/public/logging/logrotate.d/mariadb +++ /dev/null @@ -1,59 +0,0 @@ -# This is the MariaDB configuration for the logrotate utility -# -# Note that on most Linux systems logs are written to journald, which has its -# own rotation scheme. -# -# Read https://mariadb.com/kb/en/error-log/ to learn more about logging and -# https://mariadb.com/kb/en/rotating-logs-on-unix-and-linux/ about rotating logs. - -/var/lib/mysql/mysqld.log /var/lib/mysql/mariadb.log /var/log/mysql/*.log { - - # Depends on a mysql@localhost unix_socket authenticated user with RELOAD privilege - #su mysql mysql - - # If any of the files listed above is missing, skip them silently without - # emitting any errors - missingok - - # If file exists but is empty, don't rotate it - notifempty - - # Run monthly - monthly - - # Keep 6 months of logs - rotate 6 - - # If file is growing too big, rotate immediately - maxsize 500M - - # If file size is too small, don't rotate at all - minsize 50M - - # Compress logs, as they are text and compression will save a lot of disk space - compress - - # Don't compress the log immediately to avoid errors about "file size changed while zipping" - delaycompress - - # Don't run the postrotate script for each file configured in this file, but - # run it only once if one or more files were rotated - sharedscripts - - # After each rotation, run this custom script to flush the logs. Note that - # this assumes that the mariadb-admin command has database access, which it - # has thanks to the default use of Unix socket authentication for the 'mysql' - # (or root on Debian) account used everywhere since MariaDB 10.4. - postrotate - if test -r /etc/mysql/debian.cnf - then - EXTRAPARAM='--defaults-file=/etc/mysql/debian.cnf' - fi - - if test -x /usr/bin/mariadb-admin - then - /usr/bin/mariadb-admin $EXTRAPARAM --local flush-error-log \ - flush-engine-log flush-general-log flush-slow-log - fi - endscript -} |
