smeserver-mysql/root/usr/lib/systemd/system/mariadb.service.d/50koozali.conf

35 lines
865 B
Plaintext
Raw Permalink Normal View History

[Unit]
Description=MariaDB database server
After=syslog.target
After=network.target
[Service]
#allow our expand-templates
PermissionsStartOnly=true
#reset
ExecStartPre=
#ours : we need root user as + and ! are not yet supported
ExecStartPre=/usr/libexec/mysql-check-socket
ExecStartPre=-/sbin/e-smith/service-status mariadb
ExecStartPre=-/sbin/e-smith/expand-template /var/lib/mysql.private/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
ExecStartPost=-/sbin/e-smith/systemd/mariadb-post
[Install]
WantedBy=sme-server.target