Add initscripts install 61/20661/1
authoryufei_zhou <yufei.zhou@nokia-sbell.com>
Wed, 25 Oct 2017 23:54:41 +0000 (07:54 +0800)
committeryufei_zhou <yufei.zhou@nokia-sbell.com>
Wed, 25 Oct 2017 23:54:41 +0000 (07:54 +0800)
Change-Id: I97e2d4766abdbf989be200cbf75174d0261f9026
Issue-ID: VFC-544
Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh

index 05d261a..1c6ef96 100755 (executable)
@@ -21,6 +21,7 @@ WORKDIR /service
 # 20-mysq.txt
 
 # Set up mysql
+RUN yum install initscripts
 RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rpm -ivh mysql-community-release-el7-5.noarch.rpm && rm -f mysql-community-release-el7-5.noarch.rpm
 RUN yum -y update
 RUN yum -y install -y mysql-server
index 69e2b25..745e97e 100755 (executable)
@@ -18,7 +18,7 @@
 
 function start_mysql {
     echo "start mysql ... "
-    service mysql start
+    su /sbin/service mysql restart
     sleep 1
 }