From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mysql-init-scripts/files/
Date: Wed, 13 May 2015 23:59:17 +0000 (UTC) [thread overview]
Message-ID: <1431541336.94b080b8ac948a9d940d4d902478ab941870ffa7.grknight@gentoo> (raw)
commit: 94b080b8ac948a9d940d4d902478ab941870ffa7
Author: layman <layman <AT> localhost>
AuthorDate: Wed May 13 18:22:16 2015 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Wed May 13 18:22:16 2015 +0000
URL: https://gitweb.gentoo.org/proj/mysql.git/commit/?id=94b080b8
Wait for server to come available under s6
dev-db/mysql-init-scripts/files/init.d-s6 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dev-db/mysql-init-scripts/files/init.d-s6 b/dev-db/mysql-init-scripts/files/init.d-s6
index dfbe7f6..da97b30 100644
--- a/dev-db/mysql-init-scripts/files/init.d-s6
+++ b/dev-db/mysql-init-scripts/files/init.d-s6
@@ -78,6 +78,17 @@ start_pre() {
fi
}
+start_post() {
+ local socket=$(get_config "${MY_CNF}" socket | tail -n1)
+ local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
+ local startup_timeout=${STARTUP_TIMEOUT:-900}
+
+ if [ -n "${chroot}" ] ; then
+ socket="${chroot}/${socket}"
+ fi
+ ewaitfile ${startup_timeout} "${socket}"
+}
+
checkconfig() {
local my_cnf="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
local basedir=$(get_config "${my_cnf}" basedir | tail -n1)
next reply other threads:[~2015-05-13 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 23:59 Brian Evans [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-14 18:42 [gentoo-commits] proj/mysql:master commit in: dev-db/mysql-init-scripts/files/ Brian Evans
2015-05-13 3:15 Brian Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431541336.94b080b8ac948a9d940d4d902478ab941870ffa7.grknight@gentoo \
--to=grknight@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox