nixos/mailman: set RemainAfterExit for settings

This seems to be required to have the unit re-run if
services.mailman.restApiPassFile gets set.
This commit is contained in:
Alyssa Ross 2023-05-18 11:15:26 +00:00 committed by Yureka
parent 43465c94d4
commit 7ddca49451

View File

@ -503,6 +503,7 @@ in {
path = with pkgs; [ jq ]; path = with pkgs; [ jq ];
after = optional withPostgresql "postgresql.service"; after = optional withPostgresql "postgresql.service";
requires = optional withPostgresql "postgresql.service"; requires = optional withPostgresql "postgresql.service";
serviceConfig.RemainAfterExit = true;
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' script = ''
install -m0750 -o mailman -g mailman ${mailmanCfgFile} /etc/mailman.cfg install -m0750 -o mailman -g mailman ${mailmanCfgFile} /etc/mailman.cfg