Hi,
I have found that recent versions of MariaDB 10.3 deploy a /etc/init.d/mysql start script. On AlmaLinux 8, this script is automatically imported as a systemd service called "mysql". On earlier versions, the 'mysql' service was aliased to 'mariadb'.
This causes two issues:
1: The script starts the 'mysql' service, not the MariaDB service. Therefore stopping the mariadb service does not work after starting the mysql service. This might sound trivial, but automated management runs into issues this way when someone manually intervenes.
2: The start script starts mariadb with log-error to a file, instead of to syslog. This is non-default behaviour.
I propose to remove the /etc/init.d/mysql script as I don't see how it adds value.
Thanks,
Michaël
- relates to
-
MDEV-10797
RPM includes init script and a systemd unit
-
-
Closed
{"report":{"fcp":1022.1999999284744,"ttfb":311,"pageVisibility":"visible","entityId":111649,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3e92a3f3-e7a0-4dc6-ac69-b77f3d3aca5e","navigationType":0,"readyForUser":1104.2999999523163,"redirectCount":0,"resourceLoadedEnd":1148.5,"resourceLoadedStart":316.1999999284744,"resourceTiming":[{"duration":167.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":316.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":483.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":168.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":316.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":224.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":316.6999999284744,"connectEnd":316.6999999284744,"connectStart":316.6999999284744,"domainLookupEnd":316.6999999284744,"domainLookupStart":316.6999999284744,"fetchStart":316.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":316.6999999284744,"responseEnd":541.0999999046326,"responseStart":541.0999999046326,"secureConnectionStart":316.6999999284744},{"duration":290.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":316.89999997615814,"connectEnd":316.89999997615814,"connectStart":316.89999997615814,"domainLookupEnd":316.89999997615814,"domainLookupStart":316.89999997615814,"fetchStart":316.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":316.89999997615814,"responseEnd":607.7999999523163,"responseStart":607.7999999523163,"secureConnectionStart":316.89999997615814},{"duration":294.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":317,"connectEnd":317,"connectStart":317,"domainLookupEnd":317,"domainLookupStart":317,"fetchStart":317,"redirectEnd":0,"redirectStart":0,"requestStart":317,"responseEnd":611.5999999046326,"responseStart":611.5999999046326,"secureConnectionStart":317},{"duration":294.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":317.2999999523163,"connectEnd":317.2999999523163,"connectStart":317.2999999523163,"domainLookupEnd":317.2999999523163,"domainLookupStart":317.2999999523163,"fetchStart":317.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":317.2999999523163,"responseEnd":612.0999999046326,"responseStart":612.0999999046326,"secureConnectionStart":317.2999999523163},{"duration":294.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":317.5,"connectEnd":317.5,"connectStart":317.5,"domainLookupEnd":317.5,"domainLookupStart":317.5,"fetchStart":317.5,"redirectEnd":0,"redirectStart":0,"requestStart":317.5,"responseEnd":612.3999999761581,"responseStart":612.3999999761581,"secureConnectionStart":317.5},{"duration":368.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":317.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":295.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":317.7999999523163,"connectEnd":317.7999999523163,"connectStart":317.7999999523163,"domainLookupEnd":317.7999999523163,"domainLookupStart":317.7999999523163,"fetchStart":317.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":317.7999999523163,"responseEnd":613,"responseStart":613,"secureConnectionStart":317.7999999523163},{"duration":368.1999999284744,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":317.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":686.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":295.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":318.09999990463257,"connectEnd":318.09999990463257,"connectStart":318.09999990463257,"domainLookupEnd":318.09999990463257,"domainLookupStart":318.09999990463257,"fetchStart":318.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":318.09999990463257,"responseEnd":613.5,"responseStart":613.5,"secureConnectionStart":318.09999990463257},{"duration":817.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":319,"connectEnd":319,"connectStart":319,"domainLookupEnd":319,"domainLookupStart":319,"fetchStart":319,"redirectEnd":0,"redirectStart":0,"requestStart":319,"responseEnd":1136.2999999523163,"responseStart":1136.2999999523163,"secureConnectionStart":319},{"duration":825.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":323.2999999523163,"connectEnd":323.2999999523163,"connectStart":323.2999999523163,"domainLookupEnd":323.2999999523163,"domainLookupStart":323.2999999523163,"fetchStart":323.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":323.2999999523163,"responseEnd":1148.5,"responseStart":1148.5,"secureConnectionStart":323.2999999523163},{"duration":329.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":697.7999999523163,"connectEnd":697.7999999523163,"connectStart":697.7999999523163,"domainLookupEnd":697.7999999523163,"domainLookupStart":697.7999999523163,"fetchStart":697.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":697.7999999523163,"responseEnd":1027.0999999046326,"responseStart":1027.0999999046326,"secureConnectionStart":697.7999999523163},{"duration":185.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1015.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1015.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1200.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":157,"responseStart":311,"responseEnd":316,"domLoading":314,"domInteractive":1223,"domContentLoadedEventStart":1223,"domContentLoadedEventEnd":1267,"domComplete":1798,"loadEventStart":1798,"loadEventEnd":1799,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1204.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1205.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1205.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1206.7999999523163},{"name":"activityTabFullyLoaded","time":1282.8999999761581}],"measures":[],"correlationId":"4956f398db1676","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixed in 10.4+, please, upgrade