Skip to content

Make SysV init script explicit on its dependencies (Related: #1035949)

In MDEV-28640 the init script failed to stop/start the MariaDB server due to missing mysqladmin on the system. This was however very hard to spot from the console output.

Add an explicit check for the binary the script depends on, and fail verbosely if the dependency is missing.

This is identical as done in upstream https://github.com/MariaDB/server/pull/2299/commits/a7fb9f80af6f6aa2e5ca2f36a79d325358b40e00 and later in Debian in mariadb-server@931c1c6c

See also mariadb-10.3!37 (merged)

Merge request reports

Loading