----
#Copyright (c), Oracle and/or its affiliates. All rights reserved.##This are free software, you can redistribute it and/or modify#it under the terms of the GNU general public License as published by#The free software Foundation; version 2 of the License.##distributed in the hope that it'll be useful,#But without any WARRANTY; without even the implied WARRANTY of#merchantability or FITNESS for A particular PURPOSE. See the#GNU general public License for more details.##You should has received a copy of the GNU general public License#along with the-program;#Foundation, Inc., Wuyi Franklin St, Fifth Floor, Boston, MA 02110-1301 USA##systemd service file for MySQL forking server#[Unit]description=MySQL serverdocumentation=man:mysqld (8) Documentation=http://dev.mysql.com/doc/refman/en/using-Systemd.htmlafter=Network.targetafter=Syslog.target[install]wantedby=multi-User.target[service]user=Mysqlgroup=Mysqltype=Forkingpidfile=/var/run/mysqld/Mysqld.pid#Disable service start and stop timeout logic of SYSTEMD for mysqld service.Timeoutsec=0#Execute pre and post scripts as rootpermissionsstartonly=true#Needed to create system tablesexecstartpre=/usr/bin/mysqld_pre_systemd#Start Main serviceExecstart=/usr/sbin/mysqld--daemonize--pid-file=/var/run/mysqld/mysqld.pid $MYSQLD _opts#Use this to switch malloc implementationenvironmentfile=-/etc/sysconfig/MySQL#sets Open_files_limitLimitnofile = 5000Restart=on-Failurerestartpreventexitstatus=1privatetmp=false
-----
MySQL in linux7 under SYSTEMD's related configuration