Attached you find a patch which could be applied against latest debian master branch. It provides LSB headers for the example script, which works here (for mysql-5.5) fine.
Maybe somebody want to use it as replacement for the stock mysql init script. In this case it maybe usefull to provide 'mysql' instead of 'mysqld_multi', but this is conflicting if the default init script is not removed from /etc/init.d. So I would suggest this change should be done by the users for his own (and risk :). Cheers, Jan. P.S. There is also a PR pending on github (https://github.com/ottok/mariadb-10.0), just in case. -- Never write mail to <w...@spamfalle.info>, you have been warned! -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ ------END GEEK CODE BLOCK------
From 2f6a9756cd55bfdde844a4c52923f49680e8ea0a Mon Sep 17 00:00:00 2001 From: Jan Wagner <w...@cyconet.org> Date: Fri, 20 Feb 2015 19:50:38 +0100 Subject: [PATCH] Adding mysqld_multi.server_lsb-header.patch, provides LSB headers for example initscript (Closes: #778762) --- .../patches/mysqld_multi.server_lsb-header.patch | 27 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 28 insertions(+) create mode 100644 debian/patches/mysqld_multi.server_lsb-header.patch diff --git a/debian/patches/mysqld_multi.server_lsb-header.patch b/debian/patches/mysqld_multi.server_lsb-header.patch new file mode 100644 index 0000000..8911653 --- /dev/null +++ b/debian/patches/mysqld_multi.server_lsb-header.patch @@ -0,0 +1,27 @@ +--- a/support-files/mysqld_multi.server.sh ++++ b/support-files/mysqld_multi.server.sh +@@ -14,8 +14,22 @@ + # Version 1.0 + # + +-basedir=/usr/local/mysql +-bindir=/usr/local/mysql/bin ++### BEGIN INIT INFO ++# Provides: mysqld_multi ++# Required-Start: $local_fs $network $remote_fs $syslog ++# Required-Stop: $local_fs $network $remote_fs $syslog ++# Default-Start: 2 3 4 5 ++# Default-Stop: 0 1 6 ++# Short-Description: starting our several mysql daemons ++# Description: n/a ++### END INIT INFO ++ ++PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ++NAME=mysqld_multi ++DESC=mysqld_multi ++ ++basedir=/usr ++bindir=/usr/bin + + if test -x $bindir/mysqld_multi + then diff --git a/debian/patches/series b/debian/patches/series index 969689c..63cb112 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -13,3 +13,4 @@ new_valid_certs.patch new_valid_certs_test_fix.patch reproducible-builds-fix-connect.patch mysqld_multi_confd.patch +mysqld_multi.server_lsb-header.patch
signature.asc
Description: OpenPGP digital signature