From 5a642cafa4f2909557b92b0ac89761545bd6cbad Mon Sep 17 00:00:00 2001 From: pvizeli Date: Thu, 30 Mar 2017 09:31:06 +0200 Subject: [PATCH] Detach update commands from process --- .../hassio-host-controll/hassio-host-controll.bb | 1 + .../hassio-host-controll/hassio-host-controll/hassio-hc | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll.bb b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll.bb index 2a17c8e9b..5c25c5047 100644 --- a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll.bb +++ b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll.bb @@ -16,6 +16,7 @@ SYSTEMD_AUTO_ENABLE = "enable" RDEPENDS_${PN} = " \ bash \ socat \ + nohup \ " FILES_${PN} += " \ diff --git a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc index f9838de19..6b63932c2 100644 --- a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc +++ b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc @@ -32,18 +32,18 @@ do fi if [ ${parse[0]} == "host-update" ]; then if [ ! -z ${parse[1]} ]; then - resinhub --hostos-version ${parse[1]} || true + nohup resinhub --hostos-version ${parse[1]} > /dev/null 2>&1 & else - resinhub || true + nohup resinhub > /dev/null 2>&1 & fi echo "OK" continue fi if [ ${parse[0]} == "supervisor-update" ]; then if [ ! -z ${parse[1]} ]; then - update-resin-supervisor --supervisor-tag ${parse[1]} || true + nohup update-resin-supervisor --supervisor-tag ${parse[1]} > /dev/null 2>&1 & else - update-resin-supervisor || true + nohup update-resin-supervisor > /dev/null 2>&1 & fi echo "OK" continue