From 28f5cbaaa66556f9cfba00e6f5d9a40339a72a76 Mon Sep 17 00:00:00 2001 From: yufei_zhou Date: Tue, 24 Oct 2017 17:58:36 +0800 Subject: use servie mysql start Change-Id: I4c2cfda4438911475837b36cde68a4a937fbfbc2 Issue-ID: VFC-544 Signed-off-by: yufei_zhou --- nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh | 6 +++--- nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'nokia/vnfmdriver/vfcadaptorservice') diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh index 99ccc16f..124cfd35 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh @@ -43,10 +43,10 @@ echo ./instance-config.sh function start_mysql { - echo "start mysql ... " - systemctl start mysql.service > myout_docker_enctrypoint.file 2>&1 + echo "start mysql in entry point ... " + service mysql start > myout_docker_enctrypoint.file 2>&1 cat myout_docker_enctrypoint.file - systemctl status mysql.service > myout_docker_enctrypoint_mysql_status.file 2>&1 + service mysql status > myout_docker_enctrypoint_mysql_status.file 2>&1 cat myout_docker_enctrypoint_mysql_status.file sleep 5 } diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh index 96e1145a..1b55e980 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh @@ -17,10 +17,10 @@ # Config mysql credentials function start_mysql { - echo "start mysql ... " - systemctl start mysql.service > myout_instance_init.file 2>&1 + echo "start mysql in instance_init ... " + service mysql start > myout_instance_init.file 2>&1 cat myout_instance_init.file - systemctl status mysql.service > myout_instance_init_mysql_status.file 2>&1 + service mysql status > myout_instance_init_mysql_status.file 2>&1 cat myout_instance_init_mysql_status.file sleep 5 } -- cgit 1.2.3-korg