mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
postgresql: allow for proper shutdown
runit sends TERM per default if it wants to down a service. For postgres this means it will go into "smart shutdown mode" [1] and wait until the last client disconnects and only then shut down. This can lead to unproper termination of postgres, especially on shutdowns/reboots. This change overrides runits default beharviour by sending INT instead so postgres will go into "fast shutdown mode" [1], which will make postgres exit as promptly as possible. [1] https://www.postgresql.org/docs/9.6/server-shutdown.html
This commit is contained in:
parent
b032c4274e
commit
58a3a5b1a4
2 changed files with 3 additions and 1 deletions
2
srcpkgs/postgresql/files/postgresql/control/t
Executable file
2
srcpkgs/postgresql/files/postgresql/control/t
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/kill -INT `/usr/bin/head -1 /run/runit/supervise.postgresql/pid`
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'postgresql'
|
||||
pkgname=postgresql
|
||||
version=9.6.18
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
make_build_target=world
|
||||
configure_args="--with-openssl --with-python
|
||||
|
|
Loading…
Add table
Reference in a new issue