mariadb/support-files/mariadb.socket.in
Daniel Black 9fa3f51f59 MDEV-38313 Add WantedBy=sockets.target to systemd socket definations
mariadb.socket and others need a Install section to include the
WantedBy=sockets.target. This is consistent with other socket
definations of systemd.

Thanks Mark Bolhuis for the bug report.
2026-01-07 14:58:09 +11:00

27 lines
622 B
SYSTEMD

[Unit]
Description=MariaDB @VERSION@ database server (socket activation)
Documentation=man:mariadbd(8)
Documentation=https://mariadb.com/kb/en/library/systemd/
[Install]
WantedBy=sockets.target
[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