summaryrefslogtreecommitdiffstats
path: root/nokia
diff options
context:
space:
mode:
authoryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-21 00:43:43 +0800
committeryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-21 00:43:43 +0800
commit79fa2b97246072150ccff122ae12a86c7359b13a (patch)
tree5c7ea642f4722cdde7fe57394d760f60caf27203 /nokia
parent500cc827c86dfc9fe5e97bf143be30c33ef8f3d8 (diff)
Use command service mysql start
Change-Id: I0a601d65f50e6be7247272f720cb28d0b51f9ebb Issue-ID: VFC-54 Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia')
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh5
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh4
2 files changed, 5 insertions, 4 deletions
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
}