[Unit] Description=MariaDB database server After=syslog.target [Service] User=mysql Group=mysql ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid #ExecStartPost=/usr/bin/mysqld-post Restart=always PrivateTmp=true [Install] WantedBy=multi-user.target