Blame SOURCES/mysql@.service.in

4b4994
# Multi instance version of mariadb. For if you run mutiple verions at once.
4b4994
# Also used for @DAEMON_NAME@@bootstrap to bootstrap Galera.
4b4994
#
4b4994
# To use multi instance variant, use [mysqld.INSTANCENAME] as sections in my.cnf
4b4994
# and start the service via:
4b4994
#	systemctl start @DAEMON_NAME@@{instancename}.server
4b4994
#
4b4994
# It's not recommended to modify this file in-place, because it will be
4b4994
# overwritten during package upgrades.  If you want to customize, the
4b4994
# best way is to create a file "/etc/systemd/system/@DAEMON_NAME@.service",
4b4994
# containing
4b4994
#	.include /usr/lib/systemd/system/@DAEMON_NAME@.service
4b4994
#	...make your changes here...
4b4994
# or create a file "/etc/systemd/system/@DAEMON_NAME@.service.d/foo.conf",
4b4994
# which doesn't need to include ".include" call and which will be parsed
4b4994
# after the file @DAEMON_NAME@.service itself is parsed.
4b4994
#
4b4994
# For more info about custom unit files, see systemd.unit(5) or
4b4994
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
4b4994
4b4994
# For example, if you want to increase mysql's open-files-limit to 10000,
4b4994
# you need to increase systemd's LimitNOFILE setting, so create a file named
4b4994
# "/etc/systemd/system/@DAEMON_NAME@.service.d/limits.conf" containing:
4b4994
#	[Service]
4b4994
#	LimitNOFILE=10000
4b4994
4b4994
# Note: /usr/lib/... is recommended in the .include line though /lib/...
4b4994
# still works.
4b4994
# Don't forget to reload systemd daemon after you change unit configuration:
4b4994
# root> systemctl --system daemon-reload
4b4994
4b4994
# Use [mysqld.INSTANCENAME] as sections in my.cnf to configure this instance.
4b4994
4b4994
[Unit]
4b4994
Description=@NICE_PROJECT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@ database server
4b4994
After=syslog.target
4b4994
After=network.target
4b4994
4b4994
[Service]
4b4994
Type=notify
4b4994
User=mysql
4b4994
Group=mysql
4b4994
4b4994
ExecStartPre=@libexecdir@/mysql-check-socket
4b4994
ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n
4b4994
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/@DAEMON_NAME@@.service.d/MY_SPECIAL.conf
4b4994
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
4b4994
# per bug #547485
4b4994
ExecStart=@libexecdir@/mysqld --defaults-group-suffix=.%I --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
4b4994
ExecStartPost=@libexecdir@/mysql-check-upgrade
4b4994
ExecStopPost=@libexecdir@/mysql-wait-stop
4b4994
4b4994
# Setting this to true can break replication and the Type=notify settings
4b4994
# See also bind-address mysqld option.
4b4994
PrivateNetwork=false
4b4994
4b4994
KillMode=process
4b4994
KillSignal=SIGTERM
4b4994
4b4994
# Don't want to see an automated SIGKILL ever
4b4994
SendSIGKILL=no
4b4994
4b4994
# Restart crashed server only, on-failure would also restart, for example, when
4b4994
# my.cnf contains unknown option
4b4994
Restart=on-abort
4b4994
RestartSec=5s
4b4994
4b4994
UMask=007
4b4994
4b4994
# Give a reasonable amount of time for the server to start up/shut down
4b4994
TimeoutSec=300
4b4994
4b4994
# Place temp files in a secure directory, not /tmp
4b4994
PrivateTmp=true
4b4994
4b4994
[Install]
4b4994
WantedBy=multi-user.target