Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=MariaDB database server |
| 3 | After=syslog.target |
| 4 | After=network.target |
| 5 | |
| 6 | [Service] |
| 7 | PIDFile=/var/lib/mysql/mysqld.pid |
| 8 | Type=simple |
| 9 | User=mysql |
| 10 | Group=mysql |
| 11 | |
| 12 | # Execute post scripts as root |
| 13 | PermissionsStartOnly=true |
| 14 | |
| 15 | # Start main service |
| 16 | ExecStart=@BINDIR@/mysqld_safe --basedir=@PREFIX@ |
| 17 | |
| 18 | # Don't signal startup success before a ping works |
| 19 | ExecStartPost=@BINDIR@/mysql-systemd-start post |
| 20 | |
| 21 | TimeoutSec=300 |
| 22 | PrivateTmp=true |
| 23 | |
| 24 | [Install] |
| 25 | WantedBy=multi-user.target |