Quellcode durchsuchen

Wait for network-online before pulling bad IPs

Edvinas Valatka vor 9 Jahren
Ursprung
Commit
2fc9a78d30
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 2 2
      e-pullasn.service
  2. 1 1
      e-pullasn.timer

+ 2 - 2
e-pullasn.service

@@ -1,7 +1,7 @@
 [Unit]
 [Unit]
 Description=Update goodips ipset  from whois.radb.net
 Description=Update goodips ipset  from whois.radb.net
-Requires=iptables.service e-router.service
-After=iptables.service e-router.service
+Requires=e-router.service network-online.target
+After=e-router.service  network-online.target
 
 
 [Service]
 [Service]
 Type=oneshot
 Type=oneshot

+ 1 - 1
e-pullasn.timer

@@ -3,7 +3,7 @@ Description=e-pullasn timer
 
 
 [Timer]
 [Timer]
 OnUnitActiveSec=42000
 OnUnitActiveSec=42000
-OnBootSec=300
+OnBootSec=15
 
 
 [Install]
 [Install]
 WantedBy=timers.target
 WantedBy=timers.target