start mysql before executing it
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / docker / instance-init.sh
index d1be95c..da32e84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright 2017, Nokia Corporation
 #
 #
 # Config mysql credentials
 
-function start_mysql {
-    echo "start mysql ... "
-    service mysql start
-    sleep 5
-}
-
-start_mysql
-
 # Initialize MySQL schema
+/usr/bin/mysqld_safe &
 cd bin
 ./init_db.sh root rootpass 127.0.0.1 3306