Move timer target requirement
This commit is contained in:
parent
6e11b80b40
commit
a7cf162fe3
|
@ -56,11 +56,10 @@ in
|
||||||
systemd.timers.smart-ipv6-rotator = {
|
systemd.timers.smart-ipv6-rotator = {
|
||||||
description = "Rotate ipv6 routes to Google";
|
description = "Rotate ipv6 routes to Google";
|
||||||
timerConfig = { OnCalendar = "*-*-* 00,06,12,18:00:00"; };
|
timerConfig = { OnCalendar = "*-*-* 00,06,12,18:00:00"; };
|
||||||
wantedBy = [ "invidious.service" ];
|
wantedBy = [ "invidious.service" "timers.target" ];
|
||||||
unitConfig = { };
|
unitConfig = { };
|
||||||
};
|
};
|
||||||
systemd.services.smart-ipv6-rotator = {
|
systemd.services.smart-ipv6-rotator = {
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${ipv6-rotator}/bin/smart-ipv6-rotator run";
|
ExecStart = "${ipv6-rotator}/bin/smart-ipv6-rotator run";
|
||||||
|
|
Loading…
Reference in a new issue