Bug #97483 Change the default mysqlrouter.pid configuration location to be consistent
Submitted: 4 Nov 2019 23:56 Modified: 5 Nov 2019 7:13
Reporter: Yoseph Phillips Email Updates:
Status: Verified Impact on me:
Category:MySQL Router Severity:S4 (Feature request)
Version:8.0.18 OS:Linux
Assigned to: CPU Architecture:Any

[4 Nov 2019 23:56] Yoseph Phillips
Change the default mysqlrouter.pid configuration location to be consistent.

start.sh is looking for mysqlrouter.pid in $basedir/mysqlrouter.pid
where as /etc/init.d/mysqlrouter is looking for it in a run directory

(there is also a run directory under $basedir, however start.sh is not writing the mysqlrouter.pid to there)

How to repeat:
Install mysqlrouter using bootstrap, user, directory, conf-bind-address.

Either run mysqlrouter using the start.sh and the mysqlrouter service, or just inspect both of those files and it should be seen that they are expecting mysqlrouter.pid to be in two different locations.

Suggested fix:
We would suggest making the generated start.sh use $basedir/run/mysqlrouter.pid instead.
[5 Nov 2019 7:13] MySQL Verification Team
Hello Yoseph Phillips,

Thank you for the reasonable feature request!