Percona Server 5.7 ignores --pid-file in my.cnf

Bug #1574188 reported by Miguel Angel Nieto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
log-error=/var/log/mysqld.log
pid_file=/tmp/mysqld.pid

[mysqld_safe]
pid_file=/tmp/mysqld.pid

Still, mysqld uses:

/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

To make it work as expected I need to modify /etc/systemd/system/mysql.service

First comment the following line:

#PIDFile=/var/run/mysqld/mysqld.pid

then change this one:

ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS

to this:

ExecStart=/usr/sbin/mysqld --daemonize

Tags: pkg
Revision history for this message
Miguel Angel Nieto (miguelangelnieto) wrote :

CentOS 7.

tags: added: pkg
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3416

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.