3
0
Fork 0
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:
Eelco Dolstra 2014-04-18 17:32:24 +02:00
parent 16bba2db2e
commit fec3bc85a6

View file

@ -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.