summaryrefslogtreecommitdiffstats
path: root/support-files/mariadb.socket.in
diff options
context:
space:
mode:
Diffstat (limited to 'support-files/mariadb.socket.in')
-rw-r--r--support-files/mariadb.socket.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/support-files/mariadb.socket.in b/support-files/mariadb.socket.in
new file mode 100644
index 00000000..d99fdee0
--- /dev/null
+++ b/support-files/mariadb.socket.in
@@ -0,0 +1,24 @@
+
+[Unit]
+Description=MariaDB @VERSION@ database server (socket activation)
+Documentation=man:mariadbd(8)
+Documentation=https://mariadb.com/kb/en/library/systemd/
+
+[Socket]
+
+##############################################################################
+## USERs can override
+##
+##
+## by creating a file in /etc/systemd/system/mariadb.socket.d/MY_SPECIAL.conf
+## and adding/setting the following under [Socket] will override this file's
+## settings.
+
+SocketUser=@MYSQLD_USER@
+SocketMode=777
+
+ListenStream=@mariadb
+ListenStream=@MYSQL_UNIX_ADDR@
+ListenStream=@MYSQL_TCP_PORT@
+
+# Backlog=150