summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2015-07-24 01:41:32 +0000
committerdanbst <abcz2.uprola@gmail.com>2015-07-24 01:41:32 +0000
commit26d5a1fc62866812bb142cd228752c33bbbab214 (patch)
tree108f08cfb0001d718f9077fd358d74a7e047a069 /nixos/modules
parentaf71fbc6f1ee86dfe40d8a92eb4fd4a21414e3e4 (diff)
downloadnixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar.gz
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar.bz2
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar.lz
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar.xz
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.tar.zst
nixlib-26d5a1fc62866812bb142cd228752c33bbbab214.zip
postgresql: add reload command
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/databases/postgresql.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 97927055ce37..4cff2818f3bf 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -207,6 +207,7 @@ in
 
         serviceConfig =
           { ExecStart = "@${postgresql}/bin/postgres postgres ${toString flags}";
+            ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
             User = "postgres";
             Group = "postgres";
             PermissionsStartOnly = true;