diff options
author | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-25 16:08:37 +0800 |
---|---|---|
committer | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-25 16:10:19 +0800 |
commit | 89f35dc554bfa90350666d855220ad949f59b405 (patch) | |
tree | 346cd3752edb0ed51e58c647c7f5c8c5d02edf7a /nokia/vnfmdriver | |
parent | 51fd032f7ddcc1db1727416053b93d8998904d84 (diff) |
user service mysql start
Change-Id: Id90bd897028eba808d45669bd410a4e3e42d879e
Issue-ID: VFC-544
Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia/vnfmdriver')
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh | 4 | ||||
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 7 |
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 } |