commit b8a39271017d13d0263401472d467a852d4dbd37
parent 320b2122fd8e1fc8c7fcd237ae878410740ea1c3
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 6 Sep 2023 14:34:25 +0200
Fix pgcat kill sighup
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nixos/common/lib/pgcat.nix b/nixos/common/lib/pgcat.nix
@@ -2,6 +2,7 @@
{
environment.systemPackages = with pkgs; [
pgcat
+ util-linux
];
users = {
groups.pgcat = {
@@ -27,7 +28,7 @@
LimitNOFILE = 65536;
Environment = "RUST_LOG=info";
ExecStart = "${pkgs.pgcat}/bin/pgcat /etc/pgcat/pgcat.toml";
- ExecReload = "kill -s SIGHUP $MAINPID";
+ ExecReload = "${pkgs.util-linux}/bin/kill -s SIGHUP $MAINPID";
Restart = "always";
RestartSec = 1;
TimeoutStopSec = 5;