From 81ce0d650d23b1f45061dc3d47e552fb1e8054c9 Mon Sep 17 00:00:00 2001 From: Alek Du Date: Tue, 17 Mar 2020 10:40:44 +0800 Subject: [PATCH] hddl: fix ov_hddl_init restart issues 1. fix the /etc/modules-load.d/ not right mapped 2. fix the restart policy to make ov_hddl_init to be launched when reboot the previous on-failure policy only checks the first time exit code. Signed-off-by: Alek Du --- VCAC-A/script/setup_hddl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VCAC-A/script/setup_hddl.sh b/VCAC-A/script/setup_hddl.sh index e91cae80d..31c0146af 100755 --- a/VCAC-A/script/setup_hddl.sh +++ b/VCAC-A/script/setup_hddl.sh @@ -21,13 +21,13 @@ version: '2.4' services: ov_hddl_init: image: openvisualcloud/vcaca-ubuntu1804-analytics-hddldaemon:$1 - command: [ "/usr/local/bin/init_hddl.sh" ] + command: [ "/bin/bash", "-c", "/usr/local/bin/init_hddl.sh;while true; do sleep 36000000;done" ] container_name: ov_hddl_init volumes: - /usr/src:/usr/src:ro - /lib/modules:/lib/modules - - /etc/modules-load.d - restart: on-failure + - /etc/modules-load.d:/etc/modules-load.d + restart: unless-stopped privileged: true ov_hddl_run: image: openvisualcloud/vcaca-ubuntu1804-analytics-hddldaemon:$1