mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
postgresql: Log to stderr by default.
Now systemctl status will properly pick up the right logs. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
916d39f5ce
commit
ec1f3e7832
1 changed files with 1 additions and 8 deletions
|
@ -29,7 +29,7 @@ let
|
||||||
''
|
''
|
||||||
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
|
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
|
||||||
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
|
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
|
||||||
log_destination = 'syslog'
|
log_destination = 'stderr'
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -66,13 +66,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
logDir = mkOption {
|
|
||||||
default = "/var/log/postgresql";
|
|
||||||
description = ''
|
|
||||||
Log directory for PostgreSQL.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
default = "/var/db/postgresql";
|
default = "/var/db/postgresql";
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue