40f8062ad0
Service startup follows sysv initscript and includes db init. [Thomas: use a relative symlink rather than an absolute symlink.] Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 lines
239 B
Desktop File
11 lines
239 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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|