initial commit of file from CVS for smeserver-mysql on Sat Mar 23 16:06:28 AEDT 2024
This commit is contained in:
17
root/etc/logrotate.d/mariadb-sme
Normal file
17
root/etc/logrotate.d/mariadb-sme
Normal file
@@ -0,0 +1,17 @@
|
||||
/var/log/mariadb/*.log {
|
||||
create 640 mysql mysql
|
||||
notifempty
|
||||
daily
|
||||
rotate 3
|
||||
missingok
|
||||
compress
|
||||
postrotate
|
||||
# just if mysqld is really running
|
||||
if test -x /usr/bin/mysqladmin && \
|
||||
/usr/bin/mysqladmin ping &>/dev/null
|
||||
then
|
||||
/usr/bin/mysqladmin flush-logs
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
|
Reference in New Issue
Block a user