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":1595.7999999523163,"ttfb":742.3999998569489,"pageVisibility":"visible","entityId":66240,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"92dd72b0-5898-4ee0-af18-c0e84da04ba0","navigationType":0,"readyForUser":1678.7999999523163,"redirectCount":0,"resourceLoadedEnd":1673.0999999046326,"resourceLoadedStart":749.0999999046326,"resourceTiming":[{"duration":239.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":749.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":749.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":988.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":240.20000004768372,"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":749.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":749.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":989.5,"responseStart":0,"secureConnectionStart":0},{"duration":300.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":749.5,"connectEnd":749.5,"connectStart":749.5,"domainLookupEnd":749.5,"domainLookupStart":749.5,"fetchStart":749.5,"redirectEnd":0,"redirectStart":0,"requestStart":749.5,"responseEnd":1050,"responseStart":1050,"secureConnectionStart":749.5},{"duration":389.30000019073486,"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":749.6999998092651,"connectEnd":749.6999998092651,"connectStart":749.6999998092651,"domainLookupEnd":749.6999998092651,"domainLookupStart":749.6999998092651,"fetchStart":749.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":749.6999998092651,"responseEnd":1139,"responseStart":1139,"secureConnectionStart":749.6999998092651},{"duration":393,"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":749.8999998569489,"connectEnd":749.8999998569489,"connectStart":749.8999998569489,"domainLookupEnd":749.8999998569489,"domainLookupStart":749.8999998569489,"fetchStart":749.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":749.8999998569489,"responseEnd":1142.8999998569489,"responseStart":1142.8999998569489,"secureConnectionStart":749.8999998569489},{"duration":393.2000000476837,"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":750.0999999046326,"connectEnd":750.0999999046326,"connectStart":750.0999999046326,"domainLookupEnd":750.0999999046326,"domainLookupStart":750.0999999046326,"fetchStart":750.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":750.0999999046326,"responseEnd":1143.2999999523163,"responseStart":1143.2999999523163,"secureConnectionStart":750.0999999046326},{"duration":393.39999985694885,"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":750.2999999523163,"connectEnd":750.2999999523163,"connectStart":750.2999999523163,"domainLookupEnd":750.2999999523163,"domainLookupStart":750.2999999523163,"fetchStart":750.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":750.2999999523163,"responseEnd":1143.6999998092651,"responseStart":1143.6999998092651,"secureConnectionStart":750.2999999523163},{"duration":448.40000009536743,"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":750.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":750.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1198.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":393.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":750.5999999046326,"connectEnd":750.5999999046326,"connectStart":750.5999999046326,"domainLookupEnd":750.5999999046326,"domainLookupStart":750.5999999046326,"fetchStart":750.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":750.5999999046326,"responseEnd":1144.0999999046326,"responseStart":1144.0999999046326,"secureConnectionStart":750.5999999046326},{"duration":448.2000000476837,"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":750.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":750.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1198.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":393.7999999523163,"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":750.8999998569489,"connectEnd":750.8999998569489,"connectStart":750.8999998569489,"domainLookupEnd":750.8999998569489,"domainLookupStart":750.8999998569489,"fetchStart":750.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":750.8999998569489,"responseEnd":1144.6999998092651,"responseStart":1144.6999998092651,"secureConnectionStart":750.8999998569489},{"duration":917.0999999046326,"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":752,"connectEnd":752,"connectStart":752,"domainLookupEnd":752,"domainLookupStart":752,"fetchStart":752,"redirectEnd":0,"redirectStart":0,"requestStart":752,"responseEnd":1669.0999999046326,"responseStart":1669.0999999046326,"secureConnectionStart":752},{"duration":921.0999999046326,"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":752,"connectEnd":752,"connectStart":752,"domainLookupEnd":752,"domainLookupStart":752,"fetchStart":752,"redirectEnd":0,"redirectStart":0,"requestStart":752,"responseEnd":1673.0999999046326,"responseStart":1673.0999999046326,"secureConnectionStart":752},{"duration":438.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1231.0999999046326,"connectEnd":1231.0999999046326,"connectStart":1231.0999999046326,"domainLookupEnd":1231.0999999046326,"domainLookupStart":1231.0999999046326,"fetchStart":1231.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1231.0999999046326,"responseEnd":1669.5,"responseStart":1669.5,"secureConnectionStart":1231.0999999046326},{"duration":199.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1583.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1583.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1783.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":181.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1726.0999999046326,"connectEnd":1726.0999999046326,"connectStart":1726.0999999046326,"domainLookupEnd":1726.0999999046326,"domainLookupStart":1726.0999999046326,"fetchStart":1726.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1726.0999999046326,"responseEnd":1907.2999999523163,"responseStart":1907.2999999523163,"secureConnectionStart":1726.0999999046326},{"duration":184.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1726.5999999046326,"connectEnd":1726.5999999046326,"connectStart":1726.5999999046326,"domainLookupEnd":1726.5999999046326,"domainLookupStart":1726.5999999046326,"fetchStart":1726.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1726.5999999046326,"responseEnd":1911.2999999523163,"responseStart":1911.2999999523163,"secureConnectionStart":1726.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":559,"responseStart":743,"responseEnd":745,"domLoading":747,"domInteractive":1838,"domContentLoadedEventStart":1838,"domContentLoadedEventEnd":1896,"domComplete":2173,"loadEventStart":2173,"loadEventEnd":2174,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1803},{"name":"bigPipe.sidebar-id.end","time":1803.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1804},{"name":"bigPipe.activity-panel-pipe-id.end","time":1807.1999998092651},{"name":"activityTabFullyLoaded","time":1914.3999998569489}],"measures":[],"correlationId":"f3c3a89ec699da","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":117,"dbReadsTimeInMs":19,"dbConnsTimeInMs":30,"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