cd741df4bb
Add MYSQL_SOCKET variable with MySQL socket location Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 lines
299 B
Desktop File
14 lines
299 B
Desktop File
[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
|
|
User=mysql
|
|
RuntimeDirectory=mysql
|
|
RuntimeDirectoryMode=0755
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|