servo: upnp-forwards.timer: fix to invoke upnp-forwards.target instead of upnp-forwards.service

This commit is contained in:
Colin 2023-07-15 22:08:55 +00:00
parent 6ae73bdf87
commit 8788a8c67a

View File

@ -106,10 +106,9 @@ in
timerConfig = {
OnStartupSec = "1min";
OnUnitActiveSec = cfg.upnpRenewInterval;
Unit = "upnp-forwards.target";
};
};
})
(lib.mkIf cfg.openUpnp {
systemd.targets.upnp-forwards = {
description = "forward ports from upstream gateway to this host";
after = [ "network.target" ];