Wednesday, December 15, 2004

mysql startup script

Created this script as "mysql" in /etc/init.d and then executed
"rc-update add mysql default"
-------------
#!/sbin/runscript

start () {
ebegin "Starting mysqld..."
/usr/local/share/mysql/mysql.server start
eend ${?}
}

stop () {
ebegin "Stopping mysqld..."
/usr/local/share/mysql/mysql.server stop
eend ${?}
}
-------------

No comments: