diff options
author | Luke Granger-Brown <git@lukegb.com> | 2021-04-25 11:15:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 11:15:17 +0100 |
commit | 30ab5fb0062212957e26a8079a805a0c5f67314e (patch) | |
tree | 88de4376246e004524dfb8b44795cedf1c3b8928 /nixos | |
parent | 2fa2e63932c6b81092d231d6f5a60a3770625103 (diff) | |
parent | c260905c8060ee8367cac0635a8c87cad4eef7aa (diff) | |
download | nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar.gz nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar.bz2 nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar.lz nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar.xz nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.tar.zst nixpkgs-30ab5fb0062212957e26a8079a805a0c5f67314e.zip |
Merge pull request #107604 from pkern/exim
nixos/exim: Make queue runner interval configurable and reduce it to 5m by default
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/exim.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/exim.nix b/nixos/modules/services/mail/exim.nix index 892fbd33214..8927d84b478 100644 --- a/nixos/modules/services/mail/exim.nix +++ b/nixos/modules/services/mail/exim.nix @@ -67,6 +67,13 @@ in ''; }; + queueRunnerInterval = mkOption { + type = types.str; + default = "5m"; + description = '' + How often to spawn a new queue runner. + ''; + }; }; }; @@ -104,7 +111,7 @@ in wantedBy = [ "multi-user.target" ]; restartTriggers = [ config.environment.etc."exim.conf".source ]; serviceConfig = { - ExecStart = "${cfg.package}/bin/exim -bdf -q30m"; + ExecStart = "${cfg.package}/bin/exim -bdf -q${cfg.queueRunnerInterval}"; ExecReload = "${coreutils}/bin/kill -HUP $MAINPID"; }; preStart = '' |