I am using here MySQL 5.7.19 from Oracle in Debian Jessie and Stretch.
ps ax | grep mysql /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=syslog.srv.rede.err --pid-file
I would like to take out the --log-error parameter from it, and replace it with --syslog.
Somewhat when reading the associate boot scripts I got the (wrong?) idea the parameters were being built from the configuration files, and I replaced in /etc/mysql/mysql.conf.d/mysqld.conf the line
log-error = /var/log/mysql/error.log
I restarted the mysql service, and it did not work as expected.
How can I configure logging to syslog in a "Debian way"?
EDIT: I opened the question in the spirit of finding it out about alternative ways besides editing init scripts