mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update ha_entrypoint.sh
This commit is contained in:
@@ -2,20 +2,6 @@
|
||||
# shellcheck shell=bash
|
||||
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 #
|
||||
####################
|
||||
|
||||
Reference in New Issue
Block a user