forked from mirrors/nixpkgs
postgresql: Use systemd's new "mixed" kill mode
"Mixed" mode sends the initial SIGINT only to the main process, but sends the SIGKILL after the time-out expires to the entire cgroup.
This commit is contained in:
parent
16bba2db2e
commit
fec3bc85a6
|
@ -215,7 +215,7 @@ in
|
|||
# Shut down Postgres using SIGINT ("Fast Shutdown mode"). See
|
||||
# http://www.postgresql.org/docs/current/static/server-shutdown.html
|
||||
KillSignal = "SIGINT";
|
||||
KillMode = "process"; # FIXME: this may cause processes to be left behind in the cgroup even after the final SIGKILL
|
||||
KillMode = "mixed";
|
||||
|
||||
# Give Postgres a decent amount of time to clean up after
|
||||
# receiving systemd's SIGINT.
|
||||
|
|
Loading…
Reference in a new issue