summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh4
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh7
2 files changed, 4 insertions, 7 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh
index 90cc15ce..124cfd35 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh
@@ -44,9 +44,9 @@ echo
function start_mysql {
echo "start mysql in entry point ... "
- systemctl start mysql.service > myout_docker_enctrypoint.file 2>&1
+ 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 93584e51..1b55e980 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
@@ -17,13 +17,10 @@
# Config mysql credentials
function start_mysql {
- sudo docker run --privileged -i -t -p 10080:80 centos /usr/sbin/init
- sudo docker run --privileged -ti -e "container=docker" -v /sys/fs/cgroup:/sys/fs/cgroup centos /usr/sbin/init
-
echo "start mysql in instance_init ... "
- systemctl start mysql.service > myout_instance_init.file 2>&1
+ 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
}