Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37046953
en ru br
ALT Linux repositórios
S:8.0.30-alt2
5.0: 5.0.89-alt1
4.1: 5.0.51-alt2.a
4.0: 5.0.51-alt2.a.M40.2
+updates:5.0.51-alt2.a.M40.1
3.0: 4.0.24-alt1

Group :: Banco de dados
RPM: MySQL

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#!/bin/sh -e
#
# Startup script for MySQL daemon.
# Copyright (C) 2001 Dmitry V. Levin <ldv@fandra.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

PROG="${0##*/}"

GetConf()
{
local group=$1
[ -n "$group" ] || group="$PROG"
shift

local name=$1
shift

local varname=$1
[ -n "$varname" ] || varname="$name"
shift

local default=$1
shift

local val=`my_print_defaults "$group" |grep "^--$name=" |tail -1`
if [ -n "$val" ]; then
eval export $varname="${val#--$name=}"
else
eval export $varname="$default"
fi
}

GetConf '' mysqld '' /usr/sbin/mysqld
GetConf '' logfile '' /var/log/mysql/info
GetConf mysqld chroot '' /var/lib/mysql
GetConf mysqld socket '' "$chroot/mysql.sock"
GetConf mysqld pid-file pidfile "$chroot/mysqld.pid"

umask 007

# Test arguments.
$mysqld "$@" -V >/dev/null

/usr/sbin/mysqld_wrapper "$@" &
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009