The following comment in mariadb.service says that the [service] section should be used to add values to the MYSQLD_OPTS environment variable. This doesn't work though, it has to be [Service] with an upper case 'S'
# Start main service
|
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf
|
# Use the [service] section and Environment="MYSQLD_OPTS=...".
|
# This isn't a replacement for my.cnf.
|
# _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster
|
ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION
|