summaryrefslogtreecommitdiff
path: root/package/mysql/mysqld.service
blob: 2ded9c2728b3e79d2a7032160af47b523c1d4825 (plain)
1
2
3
4
5
6
7
8
9
10
[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

[Install]
WantedBy=multi-user.target