4 |
After=network.target |
After=network.target |
5 |
|
|
6 |
[Service] |
[Service] |
7 |
Type=forking |
Type=notify |
8 |
User=mysql |
User=mysql |
9 |
Group=mysql |
Group=mysql |
10 |
|
|
11 |
ExecStartPre=/usr/sbin/mysqld-prepare-db-dir |
ExecStartPre=/usr/sbin/mysqld-prepare-db-dir |
12 |
ExecStart=/usr/bin/mysqld_safe --nowatch |
ExecStart=/usr/bin/mysqld_safe --nowatch |
|
ExecStartPost=/usr/sbin/mysqld-wait-ready $MAINPID |
|
13 |
|
|
14 |
# mysqld-prepare-db-dir needs root rights, this drops privileges only for ExecStart |
# mysqld-prepare-db-dir needs root rights, this drops privileges only for ExecStart |
15 |
PermissionsStartOnly=true |
PermissionsStartOnly=true |