* 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:
@@ -118,6 +118,8 @@ in
|
||||
|
||||
startOn = "started ${startDependency}";
|
||||
|
||||
environment = { TZ = config.time.timeZone; };
|
||||
|
||||
preStart =
|
||||
''
|
||||
if ! test -e ${cfg.dataDir}; then
|
||||
|
||||
Reference in New Issue
Block a user