HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/logrotate.d/rh-mariadb103-mariadb
# This logname can be set in /etc/my.cnf
# by setting the variable "log-error"
# in the [mysqld] section as follows:
#
# [mysqld]
# log-error=/var/opt/rh/rh-mariadb103/log/mariadb/mariadb.log

/var/opt/rh/rh-mariadb103/log/mariadb/mariadb.log {
        create 600 mysql mysql
        su mysql mysql
        notifempty
        daily
        rotate 3
        missingok
        compress
        delaycompress
    postrotate
	# just if mysqld is really running
        if [ -e /run/rh-mariadb103-mariadb/mariadb.pid ]
        then
           kill -1 $(</run/rh-mariadb103-mariadb/mariadb.pid)
        fi
    endscript
}