Compare commits
No commits in common. "v963" and "v961" have entirely different histories.
@ -1,16 +0,0 @@
|
|||||||
description "Startup MySQL DAtabase"
|
|
||||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
||||||
version 1.0
|
|
||||||
emits none special
|
|
||||||
|
|
||||||
start on (runlevel [2345] and (started ifup))
|
|
||||||
stop on runlevel [016]
|
|
||||||
|
|
||||||
console none
|
|
||||||
|
|
||||||
script
|
|
||||||
source /etc/init/functions
|
|
||||||
source /etc/sysconfig/profile.d/MySQL
|
|
||||||
/sbin/CheckPid /var/run/mysql.pid
|
|
||||||
su - mysql -c "/opt/MySQL/bin/mysqld_safe"
|
|
||||||
end script
|
|
31
init/genpkg
31
init/genpkg
@ -25,22 +25,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
if [ -d /var/install/sysvinit* ]; then
|
cd etc/init.d
|
||||||
cd etc/init.d
|
chmod 755 mysql
|
||||||
chmod 755 mysql
|
mkdir rc{0,1,2,3,4,5,6}.d
|
||||||
mkdir rc{0,1,2,3,4,5,6}.d
|
for i in 0 1 6; do
|
||||||
for i in 0 1 6; do
|
cd rc$i.d
|
||||||
cd rc$i.d
|
ln -s ../mysql K26mysql
|
||||||
ln -s ../mysql K26mysql
|
cd ..
|
||||||
cd ..
|
done
|
||||||
done
|
for i in 2 3 4 5; do
|
||||||
for i in 2 3 4 5; do
|
cd rc$i.d
|
||||||
cd rc$i.d
|
ln -s ../mysql S21mysql
|
||||||
ln -s ../mysql S21mysql
|
cd ..
|
||||||
cd ..
|
done
|
||||||
done
|
cd $WDIR
|
||||||
cd $WDIR
|
|
||||||
fi
|
|
||||||
cd /opt
|
cd /opt
|
||||||
ln -s MySQL mysql
|
ln -s MySQL mysql
|
||||||
cd $WDIR
|
cd $WDIR
|
||||||
|
@ -58,11 +58,11 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
LIBINST=`grep "/opt/MySQL/lib" /etc/ld.so.conf`
|
LIBINST=`grep "/opt/MySQL/lib/mysql" /etc/ld.so.conf`
|
||||||
if [ ! "$LIBINST" ]; then
|
if [ ! "$LIBINST" ]; then
|
||||||
echo "/opt/MySQL/lib" >>/etc/ld.so.conf
|
echo "/opt/MySQL/lib/mysql" >>/etc/ld.so.conf
|
||||||
if [ -d /opt/MySQL/lib64 ]; then
|
if [ -d /opt/MySQL/lib64 ]; then
|
||||||
echo "/opt/MySQL/lib64" >>/etc/ld.so.conf
|
echo "/opt/MySQL/lib64/mysql" >>/etc/ld.so.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if ! getent passwd mysql 2>&1 >/dev/null; then
|
if ! getent passwd mysql 2>&1 >/dev/null; then
|
||||||
@ -70,5 +70,5 @@ if ! getent passwd mysql 2>&1 >/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir /opt/MySQL/var
|
mkdir /opt/MySQL/var
|
||||||
/opt/MySQL/scripts/mysql_install_db
|
/opt/MySQL/bin/mysql_install_db
|
||||||
chown -R mysql:daemon /opt/MySQL/var
|
chown -R mysql:daemon /opt/MySQL/var
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
||||||
#dieses Framework wird im CVS Repository
|
|
||||||
#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt
|
|
||||||
#
|
|
||||||
#Lage dieser Datei im Archiv: $Source$
|
|
||||||
#
|
|
||||||
#(c) Rainmaker MultiMedia OHG
|
|
||||||
#This program is free software; you can redistribute it and/or
|
|
||||||
#modify ist 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.
|
|
||||||
#
|
|
||||||
#Beschreibung:
|
|
||||||
#postinstall für mySQL. Erzeugt die notwendigen Einträge unter
|
|
||||||
#/etc/ld.so.conf. Ausserdem wird eine mySQL Datenbank initialisiert.
|
|
||||||
#
|
|
||||||
#Aufrufparameter:
|
|
||||||
#keine
|
|
||||||
#
|
|
||||||
#Letzte Änderung von: $Author$
|
|
||||||
#Datum der letzten Änderung: $Date$
|
|
||||||
#Version der Datei: $Revision$
|
|
||||||
#
|
|
||||||
#$Log$
|
|
||||||
#Revision 1.11 2007/04/29 11:59:52 kueller
|
|
||||||
#UID 48 fuer mysql festgelegt
|
|
||||||
#
|
|
||||||
#Revision 1.10 2006/10/20 09:06:38 kueller
|
|
||||||
#Anpassung an 32/64 Bit Viitor
|
|
||||||
#
|
|
||||||
#Revision 1.9 2005/09/02 09:46:20 kueller
|
|
||||||
#die dbinit darf inzwischen unter root laufen und stelle keine Fragen mehr
|
|
||||||
#Der bisherige aufruf hat sogar komplet ./var geloescht. Dadurch ist mysql
|
|
||||||
#gar nicht mehr gestartet.
|
|
||||||
#
|
|
||||||
#Revision 1.8 2005/09/02 07:54:44 kueller
|
|
||||||
#mysql_install heisst in der neuen Version mysql_install_db
|
|
||||||
#
|
|
||||||
#Revision 1.7 2003/11/11 11:20:09 kueller
|
|
||||||
#installation wird nun von mysql_install erledigt. Script entsprechend geändert
|
|
||||||
#
|
|
||||||
#Revision 1.6 2002/10/09 08:33:18 kueller
|
|
||||||
#Einsatz des neuen GPL Monsum Projekt Headers
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#Revision 1.5 2001/10/08 08:51:50 kueller
|
|
||||||
#cvs header hinzugefügt bzw. korrigiert
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
sed -i -e "/\/opt\/MySQL\/lib/d" /etc/ld.so.conf
|
|
||||||
sed -i -e "/\/opt\/MySQL\/lib64/d" /etc/ld.so.conf
|
|
||||||
if getent passwd mysql 2>&1 >/dev/null; then
|
|
||||||
userdel mysql
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user