diff --git a/systemd/system/policy-routes@.service b/systemd/system/policy-routes@.service index 5093bbd..fe3ff31 100644 --- a/systemd/system/policy-routes@.service +++ b/systemd/system/policy-routes@.service @@ -3,6 +3,7 @@ Description=Set up policy routes for %I StartLimitIntervalSec=10 StartLimitBurst=5 Wants=refresh-policy-routes@%i.timer +CollectMode=inactive-or-failed [Install] Also=refresh-policy-routes@%i.timer diff --git a/systemd/system/refresh-policy-routes@.service b/systemd/system/refresh-policy-routes@.service index 0c0c050..7b0f945 100644 --- a/systemd/system/refresh-policy-routes@.service +++ b/systemd/system/refresh-policy-routes@.service @@ -1,5 +1,6 @@ [Unit] Description=Refresh policy routes for %I +CollectMode=inactive-or-failed [Service] Type=oneshot diff --git a/systemd/system/refresh-policy-routes@.timer b/systemd/system/refresh-policy-routes@.timer index c931f60..666cdf8 100644 --- a/systemd/system/refresh-policy-routes@.timer +++ b/systemd/system/refresh-policy-routes@.timer @@ -1,3 +1,6 @@ +[Unit] +BindsTo=policy-routes@%i.service + [Timer] OnActiveSec=30 OnUnitInactiveSec=60