The package MariaDB-server installs the file /usr/lib/tmpfiles.d/tmpfiles.conf with the following content:
d /var/lib/mysql 0755 mysql mysql -
|
The man page of systemd-tmpfiles.d says the following:
systemd-tmpfiles uses the configuration files from the above directories to describe the creation, cleaning and removal of volatile and temporary files and directories which usually reside in directories such as /run or /tmp.
/var/lib/mysql is not a temporary nor volatile directory. It should not be created using systemd-tmpfiles.d. It's also a problem if a different datadir is being used (/var/lib/mysql is created at system startup without content).
{"report":{"fcp":876.7000000476837,"ttfb":222.10000014305115,"pageVisibility":"visible","entityId":66267,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"770285d9-0e36-4035-95da-1b7d71aababe","navigationType":0,"readyForUser":948.8000001907349,"redirectCount":0,"resourceLoadedEnd":611.9000000953674,"resourceLoadedStart":230.30000019073486,"resourceTiming":[{"duration":15.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":230.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":246,"responseStart":0,"secureConnectionStart":0},{"duration":17.100000143051147,"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":230.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":247.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":211.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":230.60000014305115,"connectEnd":230.60000014305115,"connectStart":230.60000014305115,"domainLookupEnd":230.60000014305115,"domainLookupStart":230.60000014305115,"fetchStart":230.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":255.10000014305115,"responseEnd":442.40000009536743,"responseStart":281.80000019073486,"secureConnectionStart":230.60000014305115},{"duration":381.2000000476837,"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":230.70000004768372,"connectEnd":230.70000004768372,"connectStart":230.70000004768372,"domainLookupEnd":230.70000004768372,"domainLookupStart":230.70000004768372,"fetchStart":230.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":255.20000004768372,"responseEnd":611.9000000953674,"responseStart":279.90000009536743,"secureConnectionStart":230.70000004768372},{"duration":59,"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":230.90000009536743,"connectEnd":230.90000009536743,"connectStart":230.90000009536743,"domainLookupEnd":230.90000009536743,"domainLookupStart":230.90000009536743,"fetchStart":230.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":255.30000019073486,"responseEnd":289.90000009536743,"responseStart":287.40000009536743,"secureConnectionStart":230.90000009536743},{"duration":59.200000047683716,"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":231,"connectEnd":231,"connectStart":231,"domainLookupEnd":231,"domainLookupStart":231,"fetchStart":231,"redirectEnd":0,"redirectStart":0,"requestStart":255.40000009536743,"responseEnd":290.2000000476837,"responseStart":287.80000019073486,"secureConnectionStart":231},{"duration":22.299999952316284,"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":231.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":253.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":60.700000047683716,"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":231.10000014305115,"connectEnd":231.10000014305115,"connectStart":231.10000014305115,"domainLookupEnd":231.10000014305115,"domainLookupStart":231.10000014305115,"fetchStart":231.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":255.60000014305115,"responseEnd":291.80000019073486,"responseStart":290.40000009536743,"secureConnectionStart":231.10000014305115},{"duration":144.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":231.20000004768372,"connectEnd":231.20000004768372,"connectStart":231.20000004768372,"domainLookupEnd":231.20000004768372,"domainLookupStart":231.20000004768372,"fetchStart":231.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":256.90000009536743,"responseEnd":375.80000019073486,"responseStart":374,"secureConnectionStart":231.20000004768372},{"duration":22.199999809265137,"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":231.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":253.5,"responseStart":0,"secureConnectionStart":0},{"duration":65.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":231.5,"connectEnd":231.5,"connectStart":231.5,"domainLookupEnd":231.5,"domainLookupStart":231.5,"fetchStart":231.5,"redirectEnd":0,"redirectStart":0,"requestStart":258.60000014305115,"responseEnd":296.90000009536743,"responseStart":292.60000014305115,"secureConnectionStart":231.5},{"duration":269.2000000476837,"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":232.5,"connectEnd":232.5,"connectStart":232.5,"domainLookupEnd":232.5,"domainLookupStart":232.5,"fetchStart":232.5,"redirectEnd":0,"redirectStart":0,"requestStart":304.60000014305115,"responseEnd":501.7000000476837,"responseStart":496.5,"secureConnectionStart":232.5},{"duration":269.39999985694885,"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":232.60000014305115,"connectEnd":232.60000014305115,"connectStart":232.60000014305115,"domainLookupEnd":232.60000014305115,"domainLookupStart":232.60000014305115,"fetchStart":232.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":314.30000019073486,"responseEnd":502,"responseStart":497.60000014305115,"secureConnectionStart":232.60000014305115},{"duration":109.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":586.7000000476837,"connectEnd":586.7000000476837,"connectStart":586.7000000476837,"domainLookupEnd":586.7000000476837,"domainLookupStart":586.7000000476837,"fetchStart":586.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":668.8000001907349,"responseEnd":695.9000000953674,"responseStart":695.3000001907349,"secureConnectionStart":586.7000000476837}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":65,"responseStart":223,"responseEnd":229,"domLoading":226,"domInteractive":1009,"domContentLoadedEventStart":1010,"domContentLoadedEventEnd":1060,"domComplete":1635,"loadEventStart":1635,"loadEventEnd":1636,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":981.8000001907349},{"name":"bigPipe.sidebar-id.end","time":982.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":982.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":985.3000001907349},{"name":"activityTabFullyLoaded","time":1080.1000001430511}],"measures":[],"correlationId":"c6b982542ba504","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":13,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
it was introduced in 10.1 by this commit:
commit 7bbc6c14d1e8fcf1f4737e0a5fcf6237fe18bd23
Author: Christian Hesse
Date: Fri May 19 15:45:07 2017 +0200
Generate and install sysusers and tmpfiles configuration
Using systemd we can automate creating users and directories. So
generate and install the configuration files.
Signed-off-by: Vicențiu Ciorbaru
Small change in cmake/install_layout.cmake compared to original contributor
patch to also install SYSTEMD_SYSUSERS and SYSTEMD_TMPFILES directories. The
variables were being set, but the loop which defines the final install files
was not updated.
Thus assigning to cvicentiu to clarify.