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.
commit24d5e30b5fcbcd27121047ed210f506273755832
authorMilan Pässler <me@pbb.lc>
dateSat 26 Jan 2019, 03:08 (8 years ago)
parent9310fc3
nixos/modules/services/networking/prosody.nix+1
@@ -513,6 +513,7 @@ in
513513 RuntimeDirectory = [ "prosody" ];
514514 PIDFile = "/run/prosody/prosody.pid";
515515 ExecStart = "${cfg.package}/bin/prosodyctl start";
516+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
516517 };
517518 };
518519