2015-05-23 12:15:18 +02:00
|
|
|
[Unit]
|
|
|
|
Description=MySQL database server
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=/bin/sh -c 'test -d /var/mysql/mysql || mysql_install_db --user=mysql --ldata=/var/mysql'
|
|
|
|
ExecStart=/usr/bin/mysqld_safe
|
|
|
|
Restart=always
|
2016-09-14 00:03:50 +02:00
|
|
|
User=mysql
|
|
|
|
RuntimeDirectory=mysql
|
|
|
|
RuntimeDirectoryMode=0755
|
2015-05-23 12:15:18 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|