aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mysql/mariadb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-08-25 14:47:19 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-08-27 12:49:19 +0200
commit44834de2a3651cb84c8f46489fb6a5f75d6a6787 (patch)
treedd834a237c3b4a1f67c3f75d4347a13b50cfa372 /meta-oe/recipes-support/mysql/mariadb
parent5340cc8474a949952a8124a7352c17e7ea994cb3 (diff)
downloadmeta-openembedded-44834de2a3651cb84c8f46489fb6a5f75d6a6787.tar.gz
meta-openembedded-44834de2a3651cb84c8f46489fb6a5f75d6a6787.tar.bz2
meta-openembedded-44834de2a3651cb84c8f46489fb6a5f75d6a6787.zip
mariadb: add systemd unit file
The service file mainly comes from Fedora20. This patch also adds a configuration file under /etc/tmpfiles.d so that mysqld could start correctly. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql/mariadb')
-rw-r--r--meta-oe/recipes-support/mysql/mariadb/mysqld.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb/mysqld.service b/meta-oe/recipes-support/mysql/mariadb/mysqld.service
new file mode 100644
index 000000000..18ad8d54d
--- /dev/null
+++ b/meta-oe/recipes-support/mysql/mariadb/mysqld.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=MariaDB database server
+After=syslog.target
+After=network.target
+
+[Service]
+Type=simple
+User=mysql
+Group=mysql
+ExecStart=@BINDIR@/mysqld_safe --basedir=@PREFIX@
+TimeoutSec=300
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target