RPMs wrongly assumes that .pid file is always located in datadir
Bug #1201896 reported by
Valerii Kravchuk
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.6 |
Fix Released
|
High
|
Tomislav Plavcic |
Bug Description
The preinstall scriptlet looks up the datadir via:
mysql_datadir=
and then assumes that the server is currently running if one file exists matching:
NR_PID_FILES=`ls $mysql_
This only works if the PID file is located in that directory, though, and it may not be the case if explicit pid-file setting is used.
As a result, during installation of RPMs wrong assumption may be made about server running or not.
tags: | added: pkg |
To post a comment you must log in.
This is easy to verify by code review actually:
openxs@ debian7: ~/bzr/percona- 5.5$ bzr version-info debian7: ~/bzr/percona- 5.5$ grep -n NR_PID_FILES build/percona- server. spec PID_FILES= `ls $mysql_ datadir/ *.pid 2>/dev/null | wc -l` debian7: ~/bzr/percona- 5.5$ cd ../percona-5.6 debian7: ~/bzr/percona- 5.6$ grep -n NR_PID_FILES build/percona- server. spec PID_FILES= `ls $mysql_ datadir/ *.pid 2>/dev/null | wc -l` debian7: ~/bzr/percona- 5.6$ bzr version-info revision-id: <email address hidden>
revision-id: <email address hidden>
date: 2013-07-12 09:17:29 +0000
build-date: 2013-07-16 20:07:15 +0300
revno: 555
branch-nick: percona-5.5
openxs@
653:NR_
654:case $NR_PID_FILES in
openxs@
openxs@
645:NR_
646:case $NR_PID_FILES in
openxs@
date: 2013-07-12 09:09:16 +0000
build-date: 2013-07-16 20:10:41 +0300
revno: 405
branch-nick: percona-5.6