nixos/matrix-synapse: reload service with SIGHUP

This is used to load new certificates without restarting the service
This commit is contained in:
nyanloutre 2019-02-06 16:20:43 +01:00
parent 4a5f1bb9bc
commit 524e26c69a

View file

@ -695,6 +695,7 @@ in {
${ concatMapStringsSep "\n " (x: "--config-path ${x} \\") ([ configFile ] ++ cfg.extraConfigFiles) }
--keys-directory ${cfg.dataDir}
'';
ExecReload = "${pkgs.utillinux}/bin/kill -HUP $MAINPID";
Restart = "on-failure";
};
};