Bug #88613 mysqld_pre systemd not match general-log-file
Submitted: 22 Nov 2017 18:29 Modified: 11 Jan 2018 9:13
Reporter: Andreas Paulick Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.7.20 OS:CentOS (7)
Assigned to: MySQL Verification Team CPU Architecture:Any
Tags: mysqld_pre systemd

[22 Nov 2017 18:29] Andreas Paulick
Description:
Scripts generates log file at /var/log/mysqld-%I.log if you use both logfile options.

log_error = /var/log/mysqld/<name>.err
general_log_file = /var/log/mysqld/<name>.log

How to repeat:
Use options log_error & genral_log_file.

bash -xv /usr/bin/mysqld_pre_systemd instance name
[22 Nov 2017 18:46] Andreas Paulick
called in function:get_option()
/usr/bin/my_print_defaults --defaults-file=/etc/my.cnf.d/inst1.cnf mysqld|grep -P '^--(general[-_]+|log[-_]+)+(file|error)+( )?='

would find both but the script uses only the last (tail -n1)

called in install_db():
 $log = get_option ....
[11 Dec 2017 9:13] MySQL Verification Team
Hi,

I'm not sure what is considered bug here? Both files will be created but they will be used for different logging content.

all best
Bogdan
[12 Jan 2018 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".