start mysql before executing it
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / docker / instance-init.sh
index 96e1145..da32e84 100755 (executable)
 #
 # Config mysql credentials
 
-function start_mysql {
-    echo "start mysql ... "
-    systemctl start mysql.service  > myout_instance_init.file 2>&1
-    cat myout_instance_init.file
-    systemctl status mysql.service > 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