diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-20 12:59:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-20 12:59:59 +0000 |
commit | 455cc634b179a0782cfce3e9c35fe092bc54d4b4 (patch) | |
tree | 355d675b7aa095f49e3b7c32803194ebb6cecde6 /testing/mariadb/mariadb.initd | |
parent | 829ec7f57cfc464cbafc45dc046310e5c02186c6 (diff) | |
download | aports-455cc634b179a0782cfce3e9c35fe092bc54d4b4.tar.bz2 aports-455cc634b179a0782cfce3e9c35fe092bc54d4b4.tar.xz |
mariadb: moved from testing
Diffstat (limited to 'testing/mariadb/mariadb.initd')
-rw-r--r-- | testing/mariadb/mariadb.initd | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/testing/mariadb/mariadb.initd b/testing/mariadb/mariadb.initd deleted file mode 100644 index 27632856cb..0000000000 --- a/testing/mariadb/mariadb.initd +++ /dev/null @@ -1,58 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.init,v 1.7 2004/07/14 21:41:15 agriffis Exp $ - -extra_stopped_commands="setup" -pidfile=/var/run/mysqld/mysqld.pid - -depend() { - need net - after firewall - use dns -} - -setup() { - ebegin "Creating a new MySQL database" - mysql_install_db --user=mysql --rpm - eend $? -} - -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|"` - - dir=${dir:-/var/lib/mysql} - [ -d ${dir}/mysql ] && return 0 - - if [ -z "$AUTO_SETUP" ] ; then - eerror "Database not found in $dir" - eerror "You can run '/etc/init.d/mysql setup' to setup a new database." - return 1 - fi - setup -} - -start() { - checkconfig || return 1 - ebegin "Starting mysqld" - start-stop-daemon --pidfile $pidfile \ - --start \ - --background \ - --stdout /dev/null \ - --stderr /dev/null \ - --wait 1500 \ - -- \ - /usr/bin/mysqld_safe --pid-file=$pidfile - eend $? -} - -stop () { - ebegin "Stopping mysqld" - start-stop-daemon --stop --quiet \ - --pidfile $pidfile --retry 20 - eend $? -} |