-
-
Save maxdgt/8bb7ad1b57a5d310c5b56da84740b9e8 to your computer and use it in GitHub Desktop.
Revisions
-
Thomas Fritz created this gist
Jul 23, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ [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