nixos/prosody: add ExecReload
Add an ExecReload command to the prosody service, to allow reloading prosody by sending SIGHUP to the main process, for example to update certificates without restarting the server. This is exactly how the `prosodyctl` tool does it. Note: Currently there is a bug which prevents mod_http from reloading the certificates properly: https://issues.prosody.im/1216.
This commit is contained in:
@@ -513,6 +513,7 @@ in
|
||||
RuntimeDirectory = [ "prosody" ];
|
||||
PIDFile = "/run/prosody/prosody.pid";
|
||||
ExecStart = "${cfg.package}/bin/prosodyctl start";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user