2011-01-03 10:48:06 +00:00
|
|
|
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
|
2011-08-19 09:34:34 +00:00
|
|
|
/sbin/CheckPid /var/run/mysql.pid
|
2011-01-03 10:48:06 +00:00
|
|
|
su - mysql -c "/opt/MySQL/bin/mysqld_safe"
|
|
|
|
end script
|