Blame SOURCES/mysqld.service

6f9931
# It's not recommended to modify this file in-place, because it will be
6f9931
# overwritten during package upgrades.  If you want to customize, the
6f9931
# best way is to create a file "/etc/systemd/system/mysqld.service",
6f9931
# containing
6f9931
#	.include /lib/systemd/system/mysqld.service
6f9931
#	...make your changes here...
6f9931
# For more info about custom unit files, see
6f9931
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
6f9931
6f9931
# For example, if you want to increase mysql's open-files-limit to 10000,
6f9931
# you need to increase systemd's LimitNOFILE setting, so create a file named
6f9931
# "/etc/systemd/system/mysqld.service" containing:
6f9931
#	.include /lib/systemd/system/mysqld.service
6f9931
#	[Service]
6f9931
#	LimitNOFILE=10000
6f9931
6f9931
# Note: in F-17 and beyond, /usr/lib/... is recommended in the .include line
6f9931
# though /lib/... will still work.
6f9931
6f9931
[Unit]
6f9931
Description=MySQL database server
6f9931
After=syslog.target
6f9931
After=network.target
6f9931
6f9931
[Service]
6f9931
Type=simple
6f9931
User=mysql
6f9931
Group=mysql
6f9931
6f9931
ExecStartPre=/usr/libexec/mysqld-prepare-db-dir %n
6f9931
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
6f9931
# per bug #547485
6f9931
ExecStart=/usr/bin/mysqld_safe --basedir=/usr
6f9931
ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID
6f9931
ExecStopPost=/usr/libexec/mysqld-wait-stop
6f9931
6f9931
# Give a reasonable amount of time for the server to start up/shut down
6f9931
TimeoutSec=300
6f9931
6f9931
# Place temp files in a secure directory, not /tmp
6f9931
PrivateTmp=true
6f9931
6f9931
[Install]
6f9931
WantedBy=multi-user.target