summaryrefslogtreecommitdiffstats
path: root/systemd-local-cmds/etc/systemd/system/mysqld.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-local-cmds/etc/systemd/system/mysqld.service')
-rw-r--r--systemd-local-cmds/etc/systemd/system/mysqld.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/systemd-local-cmds/etc/systemd/system/mysqld.service b/systemd-local-cmds/etc/systemd/system/mysqld.service
new file mode 100644
index 0000000..c1f8d3b
--- /dev/null
+++ b/systemd-local-cmds/etc/systemd/system/mysqld.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=MariaDB database server
+After=syslog.target
+Requires=local.service
+After=local.service
+
+[Service]
+User=mysql
+Group=mysql
+
+ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid --datadir=/home/kyle/dev/mysql
+ExecStartPost=/usr/bin/mysqld-post
+
+Restart=always
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target