From 3f893bace14c3a8426cd80e3a772e1a31979c7b1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:00:15 +0100 Subject: [PATCH] Remove trap --- postgres/rootfs/etc/cont-init.d/99-run.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index cc8d8b691..80d923980 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -34,14 +34,6 @@ cd /config || true bashio::log.info "Starting the app" -function shutdown_postgres { - echo "Received SIGTERM/SIGINT, shutting down PostgreSQL..." - gosu postgres pg_ctl -D "$PGDATA" -m fast stop - exit 0 -} - -trap 'shutdown_postgres' SIGTERM SIGINT - # Start background tasks if [ "$(bashio::info.arch)" != "armv7" ]; then /./docker-entrypoint-initdb.d/10-vector.sh & VECTOR_PID=$!