Skip to content

Commit 92196d1

Browse files
committed
Leverage the BPM-native feature to customise the Postgres shutdown signal
1 parent 49d0466 commit 92196d1

File tree

13 files changed

+55
-30
lines changed

13 files changed

+55
-30
lines changed

jobs/postgres-10/monit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
check process postgres
22
with pidfile /var/vcap/sys/run/bpm/postgres-10/postgres-10.pid
33
start program "/var/vcap/jobs/bpm/bin/bpm start postgres-10" with timeout 300 seconds
4-
stop program "/var/vcap/jobs/postgres-10/bin/bpm-stop-postgres"
4+
stop program "/var/vcap/jobs/bpm/bin/bpm stop postgres-10"
55
group vcap

jobs/postgres-10/spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ templates:
77
create-database.erb: bin/create-database
88
postgres.erb: bin/postgres
99
postgresql.conf.erb: config/postgresql.conf
10-
bpm-stop-postgres: bin/bpm-stop-postgres
1110

1211
packages:
1312
- postgres-10

jobs/postgres-10/templates/bpm-stop-postgres

Lines changed: 0 additions & 8 deletions
This file was deleted.

jobs/postgres-10/templates/bpm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
postgres_config = {
44
"name" => "postgres-10",
55
"executable" => "/var/vcap/jobs/postgres-10/bin/postgres",
6+
"shutdown_signal" => "INT",
67
"persistent_disk" => true,
78
"limits" => {
89
"open_files" => 65536,

jobs/postgres-9.4/monit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
check process postgres
22
with pidfile /var/vcap/sys/run/bpm/postgres-9.4/postgres-9.4.pid
33
start program "/var/vcap/jobs/bpm/bin/bpm start postgres-9.4" with timeout 300 seconds
4-
stop program "/var/vcap/jobs/postgres-9.4/bin/bpm-stop-postgres"
4+
stop program "/var/vcap/jobs/bpm/bin/bpm stop postgres-9.4"
55
group vcap

jobs/postgres-9.4/spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ templates:
77
create-database.erb: bin/create-database
88
postgres.erb: bin/postgres
99
postgresql.conf.erb: config/postgresql.conf
10-
bpm-stop-postgres: bin/bpm-stop-postgres
1110

1211
packages:
1312
- postgres-9.4

jobs/postgres-9.4/templates/bpm-stop-postgres

Lines changed: 0 additions & 8 deletions
This file was deleted.

jobs/postgres-9.4/templates/bpm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
postgres_config = {
44
"name" => "postgres-9.4",
55
"executable" => "/var/vcap/jobs/postgres-9.4/bin/postgres",
6+
"shutdown_signal" => "INT",
67
"persistent_disk" => true,
78
"limits" => {
89
"open_files" => 65536,

jobs/postgres/monit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
check process postgres
22
with pidfile /var/vcap/sys/run/bpm/postgres/postgres.pid
33
start program "/var/vcap/jobs/bpm/bin/bpm start postgres" with timeout 300 seconds
4-
stop program "/var/vcap/jobs/postgres/bin/bpm-stop-postgres"
4+
stop program "/var/vcap/jobs/bpm/bin/bpm stop postgres"
55
group vcap

jobs/postgres/spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ templates:
77
create-database.erb: bin/create-database
88
postgres.erb: bin/postgres
99
postgresql.conf.erb: config/postgresql.conf
10-
bpm-stop-postgres: bin/bpm-stop-postgres
1110

1211
packages:
1312
- postgres-13

0 commit comments

Comments
 (0)