Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 53341 Details for
Bug 85095
mysql-4.24-r1: missing conf.d ?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/etc/init.d/mysql fast patch (have to be changed)
mysql.diff (text/plain), 1.42 KB, created by
Bertrand Jacquin
on 2005-03-13 08:14:26 UTC
(
hide
)
Description:
/etc/init.d/mysql fast patch (have to be changed)
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2005-03-13 08:14:26 UTC
Size:
1.42 KB
patch
obsolete
>--- /etc/init.d/mysql 2005-03-13 17:13:04.000000000 +0100 >+++ /root/mysql.init.d.new 2005-03-13 17:12:37.000000000 +0100 >@@ -20,7 +20,7 @@ > #dir=`my_print_defaults mysqld | grep -- '^--datadir' | tail -n1 | sed -e 's|^--datadir=||'` > #dir=`my_print_defaults mysqld | sed -ne '/datadir/s|^--datadir=||p' | tail -n1` > local mysqld_cnf="`my_print_defaults --config-file=${MY_CNF} mysqld`" >- dir=`echo "${mysqld_cnf}" | sed -ne '/datadir/s|^--datadir=||p' | tail -n1` >+ datadir=`echo "${mysqld_cnf}" | sed -ne '/datadir/s|^--datadir=||p' | tail -n1` > pid_file=`echo "${mysqld_cnf}" | sed -ne '/pid-file/s|^--pid-file=||p' | tail -n1` > > # push these out to the script >@@ -28,7 +28,7 @@ > } > > checkconfig() { >- getconfig >+ getconfig /usr/bin/mysqld_safe > if [ -z "$datadir" ]; then > eerror "Your mysql doesn't have any datadir setting, default or specific" > eerror "Please check your my.cnf : ${MY_CNF}" >@@ -43,17 +43,17 @@ > } > > start() { >- getconfig >+ getconfig /usr/bin/mysqld_safe > checkconfig || return 1 > ebegin "Starting mysqld (${MY_NAME})" >- start-stop-daemon --start --quiet --pidfile=${pid_file} >+ start-stop-daemon --start --quiet --pidfile=${pid_file} \ > --exec /usr/bin/mysqld_safe \ > --background --defaults-file=${MY_CNF} -- >/dev/null 2>&1 > eend $? > } > > stop () { >- getconfig >+ getconfig /usr/bin/mysqld_safe > ebegin "Stopping mysqld (${MY_NAME})" > start-stop-daemon --stop --retry 5 --quiet --pidfile=${pid_file} > eend $?
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 85095
: 53341