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