Merge "start mysql before executing it"
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / docker / instance-init.sh
index 1b55e98..da32e84 100755 (executable)
 #
 # Config mysql credentials
 
-function start_mysql {
-    echo "start mysql in instance_init ... "
-    service mysql start  > myout_instance_init.file 2>&1
-    cat myout_instance_init.file
-    service mysql status > myout_instance_init_mysql_status.file 2>&1
-    cat myout_instance_init_mysql_status.file
-    sleep 5
-}
-
-start_mysql
-
 # Initialize MySQL schema
+/usr/bin/mysqld_safe &
 cd bin
 ./init_db.sh root rootpass 127.0.0.1 3306