Ensure network is really up before sending mails
ci / test (push) Successful in 1m10s Details
ci / deploy (push) Successful in 2m53s Details

This commit is contained in:
Ciapa 2024-02-04 12:37:10 +01:00
parent f85dc16246
commit 8543999a8a
1 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,8 @@ in
# Timed status mails (Boot, Shutdown, Weekly)
systemd.services."boot-mail-alert" = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
@ -74,7 +75,8 @@ in
};
systemd.services."shutdown-mail-alert" = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;