* Use PostgreSQL's fast shutdown mode. In the default
smart shutdown mode, Postgres waits until all active connections have closed, which can take an unbounded amount of time. svn path=/nixos/trunk/; revision=33959
This commit is contained in:
parent
d3ce00bdc3
commit
b603babd0f
@ -188,8 +188,12 @@ in
|
||||
|
||||
extraConfig =
|
||||
''
|
||||
# Shut down Postgres using SIGINT ("Fast Shutdown mode"). See
|
||||
# http://www.postgresql.org/docs/current/static/server-shutdown.html
|
||||
kill signal INT
|
||||
|
||||
# Give Postgres a decent amount of time to clean up after
|
||||
# receiving Upstart's SIGTERM.
|
||||
# receiving Upstart's SIGINT.
|
||||
kill timeout 60
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user