Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 91997
Collapse All | Expand All

(-)/etc/init.d/mysql.old (-1 / +3 lines)
Lines 19-29 Link Here
19
	local mysqld_cnf="`my_print_defaults --config-file=${MY_CNF} mysqld`"
19
	local mysqld_cnf="`my_print_defaults --config-file=${MY_CNF} mysqld`"
20
	datadir=`echo "${mysqld_cnf}" | sed -ne '/datadir/s|^--datadir=||p' | tail -n1`
20
	datadir=`echo "${mysqld_cnf}" | sed -ne '/datadir/s|^--datadir=||p' | tail -n1`
21
	pidfile=`echo "${mysqld_cnf}" | sed -ne '/pid-file/s|^--pid-file=||p' | tail -n1`
21
	pidfile=`echo "${mysqld_cnf}" | sed -ne '/pid-file/s|^--pid-file=||p' | tail -n1`
22
	basedir=`echo "${mysqld_cnf}" | sed -ne '/basedir/s|^--basedir=||p' | tail -n1`
22
	
23
	
23
	# push these out to the script
24
	# push these out to the script
24
	export MY_CNF 
25
	export MY_CNF 
25
	export pidfile
26
	export pidfile
26
	export datadir 
27
	export datadir 
28
	export basedir
27
}
29
}
28
30
29
checkconfig() {
31
checkconfig() {
Lines 46-52 Link Here
46
	checkconfig || return 1
48
	checkconfig || return 1
47
	ebegin "Starting mysqld (${MY_CNF})"
49
	ebegin "Starting mysqld (${MY_CNF})"
48
	start-stop-daemon --start --quiet --background \
50
	start-stop-daemon --start --quiet --background \
49
		--exec /usr/bin/mysqld_safe \
51
		--exec ${basedir}/bin/mysqld_safe \
50
		-- --defaults-file=${MY_CNF} >/dev/null 2>&1
52
		-- --defaults-file=${MY_CNF} >/dev/null 2>&1
51
	eend $?
53
	eend $?
52
}
54
}

Return to bug 91997