diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-03-24 17:51:24 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-03-24 17:51:24 +0000 |
commit | 5d31e328b3347529908395056009e0af778466ed (patch) | |
tree | 99e52cec75eb165fcd163cb5894993244fa8d9c0 /testing/mysql/mysql.initd | |
parent | 505b1b1e7dffe424789fac9cd954d5afced8c9e8 (diff) | |
parent | b211d4bec66b0d7fc655c0de9f5fe1a30ff42f06 (diff) | |
download | aports-5d31e328b3347529908395056009e0af778466ed.tar.bz2 aports-5d31e328b3347529908395056009e0af778466ed.tar.xz |
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/mysql/mysql.initd')
-rw-r--r-- | testing/mysql/mysql.initd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/testing/mysql/mysql.initd b/testing/mysql/mysql.initd deleted file mode 100644 index 8f841646b8..0000000000 --- a/testing/mysql/mysql.initd +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/dev-db/mysql/files/mysql.init,v 1.7 2004/07/14 21:41:15 agriffis Exp $ - -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 -c /etc/mysql/my.cnf 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 --user=mysql to have this done..." - return 1 - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting mysqld" - /usr/bin/mysqld_safe --defaults-file=/etc/mysql/my.cnf >/dev/null 2>&1 & - eend $? -} - -stop () { - ebegin "Stopping mysqld" - start-stop-daemon --stop --quiet \ - --pidfile=/var/run/mysqld/mysqld.pid --retry 20 - eend $? -} - |