hosts/web-2: fix systemd service dependencies for chaosevents
This commit is contained in:
parent
0cd3c05a25
commit
db58f552b2
@ -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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user