Blame SOURCES/mysql.service.in

8ddd42
# It's not recommended to modify this file in-place, because it will be
8ddd42
# overwritten during package upgrades.  If you want to customize, the
8ddd42
# best way is to create a file "/etc/systemd/system/@DAEMON_NAME@.service",
8ddd42
# containing
8ddd42
#	.include /usr/lib/systemd/system/@DAEMON_NAME@.service
8ddd42
#	...make your changes here...
8ddd42
# or create a file "/etc/systemd/system/@DAEMON_NAME@.service.d/foo.conf",
8ddd42
# which doesn't need to include ".include" call and which will be parsed
8ddd42
# after the file @DAEMON_NAME@.service itself is parsed.
8ddd42
#
8ddd42
# For more info about custom unit files, see systemd.unit(5) or
8ddd42
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
8ddd42
8ddd42
# For example, if you want to increase mysql's open-files-limit to 10000,
8ddd42
# you need to increase systemd's LimitNOFILE setting, so create a file named
8ddd42
# "/etc/systemd/system/@DAEMON_NAME@.service.d/limits.conf" containing:
8ddd42
#	[Service]
8ddd42
#	LimitNOFILE=10000
8ddd42
8ddd42
# Note: /usr/lib/... is recommended in the .include line though /lib/...
8ddd42
# still works.
8ddd42
# Don't forget to reload systemd daemon after you change unit configuration:
8ddd42
# root> systemctl --system daemon-reload
8ddd42
8ddd42
[Unit]
8ddd42
Description=@NICE_PROJECT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@ database server
8ddd42
After=syslog.target
8ddd42
After=network.target
8ddd42
8ddd42
[Service]
8ddd42
Type=simple
8ddd42
User=mysql
8ddd42
Group=mysql
8ddd42
8ddd42
ExecStartPre=@libexecdir@/mysql-check-socket
8ddd42
ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n
8ddd42
# Note: we set --basedir to prevent probes that might trigger SELinux alarms,
8ddd42
# per bug #547485
8ddd42
ExecStart=@bindir@/mysqld_safe --basedir=@prefix@
8ddd42
ExecStartPost=@libexecdir@/mysql-wait-ready $MAINPID
8ddd42
ExecStartPost=@libexecdir@/mysql-check-upgrade
8ddd42
ExecStopPost=@libexecdir@/mysql-wait-stop
8ddd42
8ddd42
# Give a reasonable amount of time for the server to start up/shut down
8ddd42
TimeoutSec=300
8ddd42
8ddd42
# Place temp files in a secure directory, not /tmp
8ddd42
PrivateTmp=true
8ddd42
8ddd42
[Install]
8ddd42
WantedBy=multi-user.target