Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 120196 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]
mysql init script
mysql (text/plain), 1.71 KB, created by
Roy Marples (RETIRED)
on 2007-05-24 15:55:29 UTC
(
hide
)
Description:
mysql init script
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-05-24 15:55:29 UTC
Size:
1.71 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/mysql.rc6,v 1.2 2007/03/04 15:47:03 vivo Exp $ > >depend() { > use dns net localmount netmount nfsmount >} > >get_config() { > my_print_defaults --config-file="$1" mysqld | > sed -n -e "s/^--$2=//p" >} > >start() { > local ebextra= > case "${SVCNAME}" in > mysql*) ;; > *) ebextra="(mysql)" ;; > esac > ebegin "Starting ${SVCNAME} ${ebextra}" > > MY_CNF="${MY_CNF:-/etc/${SVCNAME}/my.cnf}" > > if [ ! -r "${MY_CNF}" ] ; then > eerror "Cannot read the configuration file \`${MY_CNF}'" > 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) > > if [ ! -d "${datadir}" ] ; then > eerror "MySQL datadir \`${datadir}' is empty or invalid" > eerror "Please check your config file \`${MY_CNF}'" > return 1 > fi > > if [ ! -d "${datadir}"/mysql ] ; then > eerror "You don't appear to have the mysql database installed yet." > 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 $? > > save_options pidfile "${pidfile}" > save_options basedir "${basedir}" >} > >stop() { > local ebextra= > case "${SVCNAME}" in > mysql*) ;; > *) ebextra="(mysql)" ;; > esac > ebegin "Stopping ${SVCNAME} ${ebextra}" > > local pidfile="$(get_options pidfile)" > local basedir="$(get_options basedir)" > > start-stop-daemon \ > --stop \ > --exec "${basedir}"/sbin/mysqld \ > --pidfile "${pidfile}" > 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 Raw
Actions:
View
Attachments on
bug 175783
:
120196
|
155247
|
191550
|
235857