Skip to content

Commit

Permalink
PMM-12692 ingore errors when stopping pmm-managed
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Dec 5, 2023
1 parent bbe7c4c commit a2e57e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/docker/server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ ! -f $DIST_FILE ]; then
echo "Initializing Postgres"
/usr/pgsql-14/bin/initdb -D /srv/postgres14
echo "Enable pg_stat_statements extension"
/usr/pgsql-14/bin/pg_ctl start -D /srv/postgres14
/usr/pgsql-14/bin/pg_ctl start -D /srv/postgres14 -o "-c logging_collector=off"
/usr/bin/psql postgres postgres -c 'CREATE EXTENSION pg_stat_statements SCHEMA public'
/usr/pgsql-14/bin/pg_ctl stop -D /srv/postgres14
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
become: true

- name: Run Postgres database without supervisor
command: /usr/pgsql-14/bin/pg_ctl start -D /srv/postgres14
command: /usr/pgsql-14/bin/pg_ctl start -D /srv/postgres14 -o "-c logging_collector=off"
become: true
become_user: pmm
become_method: su
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
name: pmm-managed
state: stopped
become: true
ignore_errors: True

- name: Initialize Postgres database
command: /usr/pgsql-14/bin/initdb -D /srv/postgres14 --auth=trust
Expand Down

0 comments on commit a2e57e8

Please sign in to comment.