Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/etc/systemd/system/mariadb.service
# MariaDB systemd service file /etc/systemd/system/mariadb.service
[Unit]
Description=MariaDB Database
#Before=postfix.service dovecot.service dbmail-imapd.service
#dbmail-lmtpd.service dbmail-pop3d.service dbmail-timsieved.service
After=network.target
[Service]
#Type=notify
KillMode=process
KillSignal=SIGTERM
SendSIGKILL=no
User=mariadb
Group=mariadb
#ExecStart=/opt/mariadb/bin/mysqld --defaults-file=/opt/mariadb-data/my.cnf --pid-file=/dev/null
ExecStart=/opt/mariadb/bin/mysqld --defaults-file=/opt/mariadb-data/my.cnf
Environment="LANG=en_US.UTF-8"
Restart=always
RestartSec=1
TimeoutSec=300
LimitNOFILE=infinity
LimitMEMLOCK=infinity
OOMScoreAdjust=-1000
TasksMax=2048
ProtectHome=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.