1
0

hosts/web-2: fix systemd service dependencies for chaosevents

This commit is contained in:
clerie 2024-03-24 14:20:34 +01:00
parent 0cd3c05a25
commit db58f552b2

View File

@ -22,6 +22,7 @@
systemd.services."chaosevents" = { systemd.services."chaosevents" = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
requires = [ "network.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
@ -41,6 +42,7 @@
OnCalendar = "hourly"; OnCalendar = "hourly";
RandomizedDelaySec = "1h"; RandomizedDelaySec = "1h";
}; };
requires = [ "network-online.target" ];
after = [ "network-online.target" ]; after = [ "network-online.target" ];
}; };
} }