843388
# It's not recommended to modify this file in-place, because it will be
843388
# overwritten during package upgrades.  If you want to customize, the
843388
# best way is to:
843388
#
843388
# root> systemctl edit @DAEMON_NAME@.service
843388
#
843388
# Then add additonal directives under a section (probably [Service]).
843388
#
843388
# For more info about custom unit files, see systemd.unit(5) or
843388
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
843388
#
843388
# For example, if you want to increase MariaDB's open-files-limit to 10000,
843388
# you need to increase systemd's LimitNOFILE setting, use the contents below:
843388
#
843388
#	[Service]
843388
#	LimitNOFILE=10000
843388
#
843388
843388
[Unit]
843388
Description=@NICE_PROJECT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@ database server
843388
Documentation=man:mariadbd(8)
843388
Documentation=https://mariadb.com/kb/en/library/systemd/
843388
After=network.target
843388
843388
[Install]
843388
WantedBy=multi-user.target
843388
Alias=mysql.service
843388
Alias=mysqld.service
843388
843388
[Service]
843388
Type=notify
843388
User=mysql
843388
Group=mysql
843388
843388
ExecStartPre=@libexecdir@/mariadb-check-socket
843388
# '%n' expands to 'Full unit name'; man systemd.unit
843388
ExecStartPre=@libexecdir@/mariadb-prepare-db-dir %n
843388
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/@DAEMON_NAME@@.service.d/MY_SPECIAL.conf
843388
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
843388
# per bug #547485
843388
ExecStart=@libexecdir@/mariadbd --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
843388
ExecStartPost=@libexecdir@/mariadb-check-upgrade
843388
843388
# Setting this to true can break replication and the Type=notify settings
843388
# See also bind-address MariaDB option.
843388
PrivateNetwork=false
843388
843388
KillSignal=SIGTERM
843388
843388
# Don't want to see an automated SIGKILL ever
843388
SendSIGKILL=no
843388
843388
# Restart crashed server only, on-failure would also restart, for example, when
843388
# my.cnf contains unknown option
843388
Restart=on-abort
843388
RestartSec=5s
843388
843388
UMask=007
843388
843388
# Give a reasonable amount of time for the server to start up/shut down
843388
TimeoutSec=300
843388
843388
# Place temp files in a secure directory, not /tmp
843388
PrivateTmp=true