mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Update ha_entrypoint.sh
This commit is contained in:
@@ -59,7 +59,7 @@ if [ "$$" -eq 1 ]; then
|
|||||||
echo -e "\033[0;32mEverything started!\033[0m"
|
echo -e "\033[0;32mEverything started!\033[0m"
|
||||||
terminate() {
|
terminate() {
|
||||||
echo "Termination signal received, forwarding to subprocesses..."
|
echo "Termination signal received, forwarding to subprocesses..."
|
||||||
|
# Terminate all subprocesses
|
||||||
if command -v pgrep &>/dev/null; then
|
if command -v pgrep &>/dev/null; then
|
||||||
for pid in $(pgrep -P $$); do
|
for pid in $(pgrep -P $$); do
|
||||||
echo "Terminating child PID $pid"
|
echo "Terminating child PID $pid"
|
||||||
|
|||||||
Reference in New Issue
Block a user