summaryrefslogtreecommitdiff
path: root/extra/mariadb/mariadb.service
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariadb/mariadb.service')
-rw-r--r--extra/mariadb/mariadb.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/mariadb/mariadb.service b/extra/mariadb/mariadb.service
new file mode 100644
index 000000000..dd65511d7
--- /dev/null
+++ b/extra/mariadb/mariadb.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=MariaDB database server
+After=syslog.target
+
+[Service]
+User=mysql
+Group=mysql
+
+ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid
+ExecStartPost=/usr/bin/mysqld-post
+
+Restart=always
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target