Skip to content

Commit 9444a47

Browse files
authored
Stop the Home Assistant Core container by default (home-assistant#101105)
1 parent 47ecce4 commit 9444a47

File tree

1 file changed

+3
-5
lines changed
  • rootfs/etc/services.d/home-assistant

1 file changed

+3
-5
lines changed

rootfs/etc/services.d/home-assistant/finish

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ elif [[ ${APP_EXIT_CODE} -eq ${SIGNAL_EXIT_CODE} ]]; then
1818

1919
NEW_EXIT_CODE=$((128 + SIGNAL_NO))
2020
echo ${NEW_EXIT_CODE} > /run/s6-linux-init-container-results/exitcode
21-
22-
if [[ ${SIGNAL_NO} -eq ${SIGTERM} ]]; then
23-
/run/s6/basedir/bin/halt
24-
fi
2521
else
2622
bashio::log.info "Home Assistant Core service shutdown"
2723

2824
echo ${APP_EXIT_CODE} > /run/s6-linux-init-container-results/exitcode
29-
/run/s6/basedir/bin/halt
3025
fi
26+
27+
# Make sure to stop the container
28+
/run/s6/basedir/bin/halt

0 commit comments

Comments
 (0)