* 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:
Eelco Dolstra 2012-04-30 18:15:32 +00:00
parent d3ce00bdc3
commit b603babd0f

View File

@ -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
'';
};