Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Duplicate
-
10.1(EOL)
-
None
Description
While implementing systemd packaging part for MariaDB 10.1 in Debian and while comparing to MySQL 5.7 in Debian/Ubuntu, I noticed that the mysql.service file recommends against using `Restart=on-failure` and instead suggests `on-abort`:
mysql-server-5.7.mysql.service
|
# MySQL systemd service file
|
|
[Unit]
|
Description=MySQL Community Server
|
After=network.target
|
|
[Install]
|
WantedBy=multi-user.target
|
|
[Service]
|
User=mysql
|
Group=mysql
|
PermissionsStartOnly=true
|
ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
|
ExecStart=/usr/sbin/mysqld
|
ExecStartPost=/usr/share/mysql/mysql-systemd-start post
|
TimeoutSec=600
|
Restart=on-failure
|
RuntimeDirectory=mysqld
|
RuntimeDirectoryMode=755
|
(File can be viewed at https://anonscm.debian.org/cgit/pkg-mysql/mysql.git/tree/debian)
Should we also in MariaDB have `on-abort`?
Comments danblack svoj ?
What about the RuntimeDirectory options MySQL 5.7 used in Debian/Ubuntu, should we have them too?
RuntimeDirectory=mysqld
|
RuntimeDirectoryMode=755
|
People may choose to change mysqld_safe settings that aren't in /etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf
I think the postinst should be kept. These will migrate existing explicit settings of mysqld_safe to a systemd equivalent.
Particularly important is LimitNOFILE/open_files which is 16K by default however a user installation could easily have a higher limit set. An explicit timezone will also need to be migrated to keep the behaviour of MariaDB the same. The other settings are probably less critical however they are only migrated if explicitly set.
Why install mariadb.conf.d/50-mysqld_safe.cnf anyway since it isn't ever used with systemd as no mysqld_safe section is read?