servo: upnp-forwards.timer: fix to invoke upnp-forwards.target instead of upnp-forwards.service
This commit is contained in:
parent
6ae73bdf87
commit
8788a8c67a
|
@ -106,10 +106,9 @@ in
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnStartupSec = "1min";
|
OnStartupSec = "1min";
|
||||||
OnUnitActiveSec = cfg.upnpRenewInterval;
|
OnUnitActiveSec = cfg.upnpRenewInterval;
|
||||||
|
Unit = "upnp-forwards.target";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
|
||||||
(lib.mkIf cfg.openUpnp {
|
|
||||||
systemd.targets.upnp-forwards = {
|
systemd.targets.upnp-forwards = {
|
||||||
description = "forward ports from upstream gateway to this host";
|
description = "forward ports from upstream gateway to this host";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user