nixos/mailman: restart services when config changed
This commit is contained in:
parent
881dd9963f
commit
8f4fd4d9f5
@ -209,6 +209,7 @@ in {
|
|||||||
systemd.services.mailman = {
|
systemd.services.mailman = {
|
||||||
description = "GNU Mailman Master Process";
|
description = "GNU Mailman Master Process";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
restartTriggers = [ config.environment.etc."mailman.cfg".source ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.mailman}/bin/mailman start";
|
ExecStart = "${pkgs.mailman}/bin/mailman start";
|
||||||
@ -280,6 +281,7 @@ in {
|
|||||||
systemd.services.mailman-daily = {
|
systemd.services.mailman-daily = {
|
||||||
description = "Trigger daily Mailman events";
|
description = "Trigger daily Mailman events";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
|
restartTriggers = [ config.environment.etc."mailman.cfg".source ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.mailman}/bin/mailman digests --send";
|
ExecStart = "${pkgs.mailman}/bin/mailman digests --send";
|
||||||
User = "mailman";
|
User = "mailman";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user