[Unit] Description=MariaDB database server After=syslog.target After=network.target [Service] Type=simple User=root Group=root #reset ExecStartPre= #ours : we need root user as + and ! are not yet supported ExecStartPre=-/sbin/e-smith/service-status mariadb ExecStartPre=-/sbin/e-smith/expand-template /var/lib/mysql/set.password ExecStartPre=-/sbin/e-smith/expand-template /root/.my.cnf ExecStartPre=-/sbin/e-smith/expand-template /etc/my.cnf ExecStartPre=/sbin/e-smith/systemd/mariadb-initialize #reset ExecStart= #ours ExecStart=/usr/libexec/mysqld \ --defaults-file=/etc/my.cnf \ --basedir=/usr \ --datadir=/var/lib/mysql \ --user=mysql \ --pid-file=/var/run/mariadb/mariadb.pid #reset ExecStartPost= #ours ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 # Place temp files in a secure directory, not /tmp PrivateTmp=true [Install] WantedBy=sme-server.target