mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 12:38:46 +02:00
Update ha_entrypoint.sh
This commit is contained in:
@@ -2,20 +2,6 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
echo "Starting..."
|
echo "Starting..."
|
||||||
|
|
||||||
##################
|
|
||||||
# Handle sigterm #
|
|
||||||
##################
|
|
||||||
|
|
||||||
cleanup() {
|
|
||||||
echo "Caught SIGTERM, cleaning up..."
|
|
||||||
# Sends SIGTERM to all child processes
|
|
||||||
pkill -TERM -P $$ || true
|
|
||||||
wait
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
trap cleanup SIGTERM || true
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Starting scripts #
|
# Starting scripts #
|
||||||
####################
|
####################
|
||||||
|
|||||||
Reference in New Issue
Block a user