update to explicitly set shutdown hook

This commit is contained in:
Em Sharnoff
2023-11-05 14:57:24 -08:00
parent ba252c9513
commit 4ffe43b8f7
2 changed files with 3 additions and 1 deletions

View File

@@ -858,7 +858,7 @@ jobs:
- name: Downloading vm-builder
run: |
# TEMPORARY: Pull custom version of vm-builder built from neondatabase/autoscaling#600.
curl -fL https://sharnoff.io/misc/8706cca48732d4f9/vm-builder-9d18874 -o vm-builder
curl -fL https://sharnoff.io/misc/8706cca48732d4f9/vm-builder-29ef2a1 -o vm-builder
chmod +x vm-builder
# Note: we need a separate pull step here because otherwise vm-builder will try to pull, and

View File

@@ -13,6 +13,8 @@ commands:
user: nobody
sysvInitAction: respawn
shell: 'DATA_SOURCE_NAME="user=cloud_admin sslmode=disable dbname=postgres" /bin/postgres_exporter'
shutdownHook: |
su -p postgres --session-command '/usr/local/bin/pg_ctl stop -D /var/db/postgres/compute/pgdata -m fast --wait -t 10'
files:
- filename: pgbouncer.ini
content: |