FS#12798 - [mysql] mysqld rc-script must not use pidof
Attached to Project:
Arch Linux
Opened by Pierre Schmitz (Pierre) - Thursday, 15 January 2009, 11:08 GMT
Last edited by Douglas Soares de Andrade (dsa) - Monday, 08 June 2009, 12:47 GMT
Opened by Pierre Schmitz (Pierre) - Thursday, 15 January 2009, 11:08 GMT
Last edited by Douglas Soares de Andrade (dsa) - Monday, 08 June 2009, 12:47 GMT
|
Details
The current implementation of the mysqld rc script uses
pidof to determine the pid of the mysqld process. But this
way one cannot say if the process was started by the rc
script or something else.
For example akonadi starts its own mysqld as a user process. The result is that you cannot use mysqld and KDE at the same time. A better method is to use the pid file by mysql. I have attached a quick-dirty patch to solve this. |
This task depends upon
Closed by Douglas Soares de Andrade (dsa)
Monday, 08 June 2009, 12:47 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in the lastest release. We will just kill the mysqld process owned by the mysql user, any other will remain (as the ones opened by akonadi).
Monday, 08 June 2009, 12:47 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in the lastest release. We will just kill the mysqld process owned by the mysql user, any other will remain (as the ones opened by akonadi).
Could you provide a patch that fixes the issue ? I have done two patches, even the last one that worked for me but i could not understand why there where some people that mysql did not started in the boot.
not everyone need mysql all the time... I only start it (and apache) to test or work on some Web stuff.. most of the time I dont need it, so I want them off to preserve RAM and battery.