Add log to docker part
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / docker / instance-init.sh
index d1be95c..96e1145 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright 2017, Nokia Corporation
 #
 
 function start_mysql {
     echo "start mysql ... "
-    service mysql start
+    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
 }