Vorbereitung fuer upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_mysql@5542 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
ee3f65a302
commit
f63df41315
15
etc/init/mysql.conf
Normal file
15
etc/init/mysql.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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 [S016]
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
script
|
||||||
|
source /etc/init/functions
|
||||||
|
source /etc/sysconfig/profile.d/MySQL
|
||||||
|
su - mysql -c "/opt/MySQL/bin/mysqld_safe"
|
||||||
|
end script
|
@ -24,6 +24,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
cd etc/init.d
|
cd etc/init.d
|
||||||
chmod 755 mysql
|
chmod 755 mysql
|
||||||
@ -39,7 +40,7 @@ for i in 2 3 4 5; do
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user