From 79fa2b97246072150ccff122ae12a86c7359b13a Mon Sep 17 00:00:00 2001 From: yufei_zhou Date: Sat, 21 Oct 2017 00:43:43 +0800 Subject: Use command service mysql start Change-Id: I0a601d65f50e6be7247272f720cb28d0b51f9ebb Issue-ID: VFC-54 Signed-off-by: yufei_zhou --- nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh | 5 +++-- nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'nokia/vnfmdriver') diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh index a91b0004..8a2fab86 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2017, Nokia Corporation # @@ -43,7 +43,8 @@ echo ./instance-config.sh # Start mysql -/usr/bin/mysqld_safe & +# su mysql -c /usr/bin/mysqld_safe & +service mysql start # Perform one-time config if [ ! -e init.log ]; then diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh index 7db2ed43..d1be95c1 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2017, Nokia Corporation # @@ -18,7 +18,7 @@ function start_mysql { echo "start mysql ... " - /usr/bin/mysqld_safe & + service mysql start sleep 5 } -- cgit 1.2.3-korg