* Set a timezone in the PostgreSQL job. Otherwise database

initialisation will be incredibly slow (minutes instead of
  seconds).  An strace shows that it's continuously looking up
  timezone information if TZ is empty.

svn path=/nixos/branches/upstart-0.6/; revision=18235
This commit is contained in:
Eelco Dolstra 2009-11-06 22:56:47 +00:00
parent d7342c78d4
commit 18f2d75275

View File

@ -118,6 +118,8 @@ in
startOn = "started ${startDependency}";
environment = { TZ = config.time.timeZone; };
preStart =
''
if ! test -e ${cfg.dataDir}; then