Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 191550 Details for
Bug 175783
dev-db/mysql-init-scripts: convert to POSIX for use with dash/etc... and openrc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use ewaitfile
mysql-initd.diff (text/plain), 994 bytes, created by
Davide Pesavento (RETIRED)
on 2009-05-17 13:40:47 UTC
(
hide
)
Description:
Use ewaitfile
Filename:
MIME Type:
Creator:
Davide Pesavento (RETIRED)
Created:
2009-05-17 13:40:47 UTC
Size:
994 bytes
patch
obsolete
>--- mysql 2009-05-17 15:28:01.000000000 +0200 >+++ /etc/init.d/mysql 2009-05-03 15:54:58.000000000 +0200 >@@ -27,9 +27,10 @@ > return 1 > fi > >- local pidfile=$(get_config "${MY_CNF}" pid-file) > local basedir=$(get_config "${MY_CNF}" basedir) > local datadir=$(get_config "${MY_CNF}" datadir) >+ local pidfile=$(get_config "${MY_CNF}" pid-file) >+ local socket=$(get_config "${MY_CNF}" socket) > > if [ ! -d "${datadir}" ] ; then > eerror "MySQL datadir \`${datadir}' is empty or invalid" >@@ -42,14 +43,21 @@ > eerror "Please run /usr/bin/mysql_install_db to have this done..." > return 1 > fi >- >+ > start-stop-daemon \ > --start \ > --exec "${basedir}"/sbin/mysqld \ > --pidfile "${pidfile}" \ > --background \ > -- --defaults-file="${MY_CNF}" ${MY_ARGS} >- eend $? || return $? >+ local ret=$? >+ if [ ${ret} -ne 0 ] ; then >+ eend ${ret} >+ return ${ret} >+ fi >+ >+ ewaitfile 60 "${socket}" >+ eend $? || return 1 > > save_options pidfile "${pidfile}" > save_options basedir "${basedir}"
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 175783
:
120196
|
155247
| 191550 |
235857