MDEV-19432 Systemd service does not get re-enabled after upgrade
following Fedora recommendations (see %systemd_post macro in FC29)
let's do `systemctl preset` on the first installation of the server
The postin script did and still does enable the service, but then /usr/bin/systemctl preset mariadb.service disables it again – at least on CentOS, for new installations.
Elena Stepanova
added a comment - I assume by "as it is for the 10.3" you mean either 10.3.18 or earlier, or an upgrade from a previous version.
The difference apparently came with MDEV-19432 .
commit 8fce180765b2ede9fb9f0f7ee6ffcda3386050bf
Author: Sergei Golubchik <serg@mariadb.org>
Date: Wed Oct 30 09:50:52 2019 +0100
MDEV-19432 Systemd service does not get re-enabled after upgrade
following Fedora recommendations (see %systemd_post macro in FC29)
let's do `systemctl preset` on the first installation of the server
The postin script did and still does enable the service, but then /usr/bin/systemctl preset mariadb.service disables it again – at least on CentOS, for new installations.
Or we add the above the installation documentation.
Wagner Bianchi (Inactive)
added a comment - Or we enable that during the setup of the package:
[BIANCHI LABS] root @opmdb01 : ~ # systemctl --now enable mariadb.service
Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/mysqld.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[BIANCHI LABS] root @opmdb01 : ~ # systemctl is-enabled mariadb.service
enabled
Or we add the above the installation documentation.
People
Sergei Golubchik
Wagner Bianchi (Inactive)
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":856,"ttfb":250.90000009536743,"pageVisibility":"visible","entityId":83443,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"6ded928b-e151-4902-89e8-a872c027791f","navigationType":0,"readyForUser":974.9000000953674,"redirectCount":0,"resourceLoadedEnd":569.3000001907349,"resourceLoadedStart":256.5,"resourceTiming":[{"duration":15.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":256.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":256.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":271.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":17.199999809265137,"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":256.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":256.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":274,"responseStart":0,"secureConnectionStart":0},{"duration":197.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":257,"connectEnd":257,"connectStart":257,"domainLookupEnd":257,"domainLookupStart":257,"fetchStart":257,"redirectEnd":0,"redirectStart":0,"requestStart":277.80000019073486,"responseEnd":454.90000009536743,"responseStart":297.5,"secureConnectionStart":257},{"duration":312,"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":257.30000019073486,"connectEnd":257.30000019073486,"connectStart":257.30000019073486,"domainLookupEnd":257.30000019073486,"domainLookupStart":257.30000019073486,"fetchStart":257.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":278,"responseEnd":569.3000001907349,"responseStart":298.30000019073486,"secureConnectionStart":257.30000019073486},{"duration":49,"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":257.59999990463257,"connectEnd":257.59999990463257,"connectStart":257.59999990463257,"domainLookupEnd":257.59999990463257,"domainLookupStart":257.59999990463257,"fetchStart":257.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":279.5,"responseEnd":306.59999990463257,"responseStart":300.80000019073486,"secureConnectionStart":257.59999990463257},{"duration":49.10000038146973,"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":257.69999980926514,"connectEnd":257.69999980926514,"connectStart":257.69999980926514,"domainLookupEnd":257.69999980926514,"domainLookupStart":257.69999980926514,"fetchStart":257.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":280,"responseEnd":306.80000019073486,"responseStart":301.69999980926514,"secureConnectionStart":257.69999980926514},{"duration":48.90000009536743,"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":258.09999990463257,"connectEnd":258.09999990463257,"connectStart":258.09999990463257,"domainLookupEnd":258.09999990463257,"domainLookupStart":258.09999990463257,"fetchStart":258.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":280.5,"responseEnd":307,"responseStart":302.59999990463257,"secureConnectionStart":258.09999990463257},{"duration":20.799999713897705,"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":258.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":49.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":258.5,"connectEnd":258.5,"connectStart":258.5,"domainLookupEnd":258.5,"domainLookupStart":258.5,"fetchStart":258.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.90000009536743,"responseEnd":307.90000009536743,"responseStart":304.59999990463257,"secureConnectionStart":258.5},{"duration":20.59999990463257,"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":258.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":55,"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":259,"connectEnd":259,"connectStart":259,"domainLookupEnd":259,"domainLookupStart":259,"fetchStart":259,"redirectEnd":0,"redirectStart":0,"requestStart":288,"responseEnd":314,"responseStart":310.80000019073486,"secureConnectionStart":259},{"duration":301.2999997138977,"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":264.80000019073486,"connectEnd":264.80000019073486,"connectStart":264.80000019073486,"domainLookupEnd":264.80000019073486,"domainLookupStart":264.80000019073486,"fetchStart":264.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":321.90000009536743,"responseEnd":566.0999999046326,"responseStart":557.5999999046326,"secureConnectionStart":264.80000019073486},{"duration":302.40000009536743,"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":264.90000009536743,"connectEnd":264.90000009536743,"connectStart":264.90000009536743,"domainLookupEnd":264.90000009536743,"domainLookupStart":264.90000009536743,"fetchStart":264.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":361.40000009536743,"responseEnd":567.3000001907349,"responseStart":561.1999998092651,"secureConnectionStart":264.90000009536743},{"duration":144.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":608.5,"connectEnd":608.5,"connectStart":608.5,"domainLookupEnd":608.5,"domainLookupStart":608.5,"fetchStart":608.5,"redirectEnd":0,"redirectStart":0,"requestStart":716.6999998092651,"responseEnd":753.4000000953674,"responseStart":752.0999999046326,"secureConnectionStart":608.5},{"duration":160.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":849.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":849.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1010.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":185.10000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":856.1999998092651,"connectEnd":856.1999998092651,"connectStart":856.1999998092651,"domainLookupEnd":856.1999998092651,"domainLookupStart":856.1999998092651,"fetchStart":856.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1007.6999998092651,"responseEnd":1041.3000001907349,"responseStart":1040.5999999046326,"secureConnectionStart":856.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":75,"responseStart":251,"responseEnd":257,"domLoading":255,"domInteractive":1035,"domContentLoadedEventStart":1035,"domContentLoadedEventEnd":1085,"domComplete":1535,"loadEventStart":1535,"loadEventEnd":1536,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1012.5},{"name":"bigPipe.sidebar-id.end","time":1013.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1013.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1015},{"name":"activityTabFullyLoaded","time":1103.4000000953674}],"measures":[],"correlationId":"40e5a3251fd71c","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I assume by "as it is for the 10.3" you mean either 10.3.18 or earlier, or an upgrade from a previous version.
The difference apparently came with
MDEV-19432.commit 8fce180765b2ede9fb9f0f7ee6ffcda3386050bf
Author: Sergei Golubchik <serg@mariadb.org>
Date: Wed Oct 30 09:50:52 2019 +0100
MDEV-19432 Systemd service does not get re-enabled after upgrade
following Fedora recommendations (see %systemd_post macro in FC29)
let's do `systemctl preset` on the first installation of the server
The postin script did and still does enable the service, but then /usr/bin/systemctl preset mariadb.service disables it again – at least on CentOS, for new installations.