Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 57280 Details for
Bug 90471
mysql init script returns with "eend $?" while mysqld is not ready to accept connections
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
etc_init.d_mysql.patch
etc_init.d_mysql.patch (text/plain), 863 bytes, created by
Francesco R. (RETIRED)
on 2005-04-26 06:08:44 UTC
(
hide
)
Description:
etc_init.d_mysql.patch
Filename:
MIME Type:
Creator:
Francesco R. (RETIRED)
Created:
2005-04-26 06:08:44 UTC
Size:
863 bytes
patch
obsolete
>--- mysql.old 2005-04-26 15:04:02.487828872 +0200 >+++ mysql 2005-04-26 15:06:24.150292904 +0200 >@@ -27,12 +27,33 @@ > fi > } > >+mysql_get_socket() { >+ local SOCKET=`my_print_defaults mysqld | sed -ne '/socket/s|^--socket=||p' | tail -n1` >+ if [ -z "${SOCKET}" ]; then >+ SOCKET="/var/run/mysqld/mysqld.sock" >+ fi >+ echo "${SOCKET}" >+} >+ >+ > start() { >+ local retstatus=1 >+ local maxtry=5 >+ local socket=$( mysql_get_socket ) >+ > checkconfig || return 1 > ebegin "Starting mysqld" > start-stop-daemon --start --quiet --exec /usr/bin/mysqld_safe \ > --background -- >/dev/null 2>&1 >- eend $? >+ retstatus=$? >+ while ! [[ -S "${socket}" || "${maxtry}" -lt "1" || "${retstatus}" -gt "0" ]] ; do >+ maxtry=$(($maxtry-1)) >+ echo -n "." >+ sleep 1 >+ done >+ echo >+ [[ "${maxtry}" == "0" ]] && echo "MySQL NOT started, proceding anyway" >+ eend $retstatus > } > > stop () {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 90471
: 57280