Created
July 23, 2014 17:43
-
-
Save thomasfr/e4e4bb64352ee574334a to your computer and use it in GitHub Desktop.
mysqld.service file for systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=MySQL Server | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
PermissionsStartOnly=true | |
ExecStartPre=/bin/mkdir -p /var/run/mysqld | |
ExecStartPre=/bin/chown mysql:mysql -R /var/run/mysqld | |
ExecStart=/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306 | |
TimeoutSec=300 | |
PrivateTmp=true | |
User=mysql | |
Group=mysql | |
WorkingDirectory=/usr | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an
ExecStop
?