[MDEV-8543] mysql.server script not correctly handle --pid-file. Created: 2015-07-25 Updated: 2015-10-28 Resolved: 2015-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform RedHat, Scripts & Clients |
| Affects Version/s: | 5.5, 10.0 |
| Fix Version/s: | 10.0.22 |
| Type: | Bug | Priority: | Major |
| Reporter: | Bear | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.1 x64 |
||
| Sprint: | 10.0.22 |
| Description |
|
If I start mysql with --pid-file argument: service mysql start --pid-file=/var/lib/mysql/1234.pid I can not stop it with I got this error: This is because parse_server_arguments function in script does not parse --pid-file, the variable $mysqld_pid_file_path will always be empty. Thanks. |
| Comments |
| Comment by Sergei Golubchik [ 2015-10-22 ] | ||||
|
This seems to be intentional. The comment in the script says
So, these arguments are only supported when mysql.server is invoked from a spec file, they shouldn't be used directly. | ||||
| Comment by Sergei Golubchik [ 2015-10-22 ] | ||||
|
On the other hand, this code is not used for years, I can as well remove support for mysql.server arguments completely. |