From 26d5a1fc62866812bb142cd228752c33bbbab214 Mon Sep 17 00:00:00 2001 From: danbst Date: Fri, 24 Jul 2015 01:41:32 +0000 Subject: [PATCH] postgresql: add reload command --- nixos/modules/services/databases/postgresql.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index 97927055ce3..4cff2818f3b 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;