Latest packages still install /etc/init.d/mysql scripts, this can lead to race conditions in the service.
It has been observed the service starting with init if the systemd service is disabled.
{"report":{"fcp":1107.7000007629395,"ttfb":214.70000076293945,"pageVisibility":"visible","entityId":66240,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2a94d0e0-58c3-4eff-b8ea-f23f5d8a8fa0","navigationType":0,"readyForUser":1216,"redirectCount":0,"resourceLoadedEnd":1321.8000001907349,"resourceLoadedStart":226.4000005722046,"resourceTiming":[{"duration":297.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":226.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":523.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":297.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":226.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":524.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":307.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":226.80000019073486,"connectEnd":226.80000019073486,"connectStart":226.80000019073486,"domainLookupEnd":226.80000019073486,"domainLookupStart":226.80000019073486,"fetchStart":226.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":226.80000019073486,"responseEnd":533.9000005722046,"responseStart":533.9000005722046,"secureConnectionStart":226.80000019073486},{"duration":347.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":227.10000038146973,"connectEnd":227.10000038146973,"connectStart":227.10000038146973,"domainLookupEnd":227.10000038146973,"domainLookupStart":227.10000038146973,"fetchStart":227.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":227.10000038146973,"responseEnd":574.9000005722046,"responseStart":574.9000005722046,"secureConnectionStart":227.10000038146973},{"duration":351.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":227.4000005722046,"connectEnd":227.4000005722046,"connectStart":227.4000005722046,"domainLookupEnd":227.4000005722046,"domainLookupStart":227.4000005722046,"fetchStart":227.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":227.4000005722046,"responseEnd":579.2000007629395,"responseStart":579.2000007629395,"secureConnectionStart":227.4000005722046},{"duration":353.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":227.60000038146973,"connectEnd":227.60000038146973,"connectStart":227.60000038146973,"domainLookupEnd":227.60000038146973,"domainLookupStart":227.60000038146973,"fetchStart":227.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":227.60000038146973,"responseEnd":581.1000003814697,"responseStart":581.1000003814697,"secureConnectionStart":227.60000038146973},{"duration":353.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":227.70000076293945,"connectEnd":227.70000076293945,"connectStart":227.70000076293945,"domainLookupEnd":227.70000076293945,"domainLookupStart":227.70000076293945,"fetchStart":227.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":227.70000076293945,"responseEnd":581.6000003814697,"responseStart":581.6000003814697,"secureConnectionStart":227.70000076293945},{"duration":457.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":227.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":227.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":354.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":228.10000038146973,"connectEnd":228.10000038146973,"connectStart":228.10000038146973,"domainLookupEnd":228.10000038146973,"domainLookupStart":228.10000038146973,"fetchStart":228.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":228.10000038146973,"responseEnd":582.2000007629395,"responseStart":582.2000007629395,"secureConnectionStart":228.10000038146973},{"duration":457.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":228.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":354.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":228.4000005722046,"connectEnd":228.4000005722046,"connectStart":228.4000005722046,"domainLookupEnd":228.4000005722046,"domainLookupStart":228.4000005722046,"fetchStart":228.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":228.4000005722046,"responseEnd":582.9000005722046,"responseStart":582.9000005722046,"secureConnectionStart":228.4000005722046},{"duration":669.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":229.4000005722046,"connectEnd":229.4000005722046,"connectStart":229.4000005722046,"domainLookupEnd":229.4000005722046,"domainLookupStart":229.4000005722046,"fetchStart":229.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":229.4000005722046,"responseEnd":898.9000005722046,"responseStart":898.9000005722046,"secureConnectionStart":229.4000005722046},{"duration":1086.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":235,"connectEnd":235,"connectStart":235,"domainLookupEnd":235,"domainLookupStart":235,"fetchStart":235,"redirectEnd":0,"redirectStart":0,"requestStart":235,"responseEnd":1321.8000001907349,"responseStart":1321.8000001907349,"secureConnectionStart":235},{"duration":188.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":711.1000003814697,"connectEnd":711.1000003814697,"connectStart":711.1000003814697,"domainLookupEnd":711.1000003814697,"domainLookupStart":711.1000003814697,"fetchStart":711.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":711.1000003814697,"responseEnd":899.8000001907349,"responseStart":899.8000001907349,"secureConnectionStart":711.1000003814697},{"duration":423.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1004.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1004.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1428.1000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":29,"responseStart":215,"responseEnd":234,"domLoading":224,"domInteractive":1358,"domContentLoadedEventStart":1358,"domContentLoadedEventEnd":1428,"domComplete":2016,"loadEventStart":2016,"loadEventEnd":2017,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1325.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1326.2000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":1329.4000005722046},{"name":"activityTabFullyLoaded","time":1450.4000005722046}],"measures":[],"correlationId":"90a7ad53e6ed06","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":121,"dbReadsTimeInMs":18,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
otto thanks for looking deeply into this!
I agree with most your solution proposal.
But I believe this one is not totally correct:
> systemctl aliases are good, they increase compatibility with mysql - skipping them to "fix" this bug is the wrong tradeoff
Aliases is not the best solution to increase compatibility with mysql. Instead, "shipping a (static) symlink in the package is the second best thing you can do to align the sysv init script name and the service name, The best you can do (obviously) is to use the same name for the sysv init script and the service file.", I am quoting M. Biebl, see: https://github.com/MariaDB/server/pull/1172#discussion_r305863850