summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mysql/files/mysql.init')
-rw-r--r--dev-db/mysql/files/mysql.init37
1 files changed, 0 insertions, 37 deletions
diff --git a/dev-db/mysql/files/mysql.init b/dev-db/mysql/files/mysql.init
deleted file mode 100644
index 04f8027..0000000
--- a/dev-db/mysql/files/mysql.init
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- need net
- use dns
-}
-
-checkconfig() {
- if [ ! -f /etc/mysql/my.cnf ] ; then
- eerror "No /etc/mysql/my.cnf file exists!"
- fi
-
- dir=`my_print_defaults mysqld | grep -- --datadir | sed -e "s|^.*=\(.*\)|\1|"`
-
- if [ ! -d $dir/mysql ] ; then
- eerror "You dont appear to have the mysql database installed yet."
- eerror "Please run /usr/bin/mysql_install_db to have this done..."
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting mysqld"
- /usr/bin/safe_mysqld >/dev/null 2>&1 &
- eend $?
-}
-
-stop () {
- ebegin "Stopping mysqld"
- start-stop-daemon --stop --quiet \
- --pidfile=/var/run/mysqld/mysqld.pid --retry 20
- eend $?
-}