Skip to content

Commit

Permalink
Start the interface refresh timer as a dependency of the service
Browse files Browse the repository at this point in the history
...rather than explicitly in the udev rules.
  • Loading branch information
Noah Meyerhans committed Mar 6, 2024
1 parent e68353d commit 69085e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Description=Set up policy routes for %I
StartLimitIntervalSec=10
StartLimitBurst=5
Wants=refresh-policy-routes@%i.timer
Also=policy-routes@$name.timer

[Service]
Type=oneshot
Expand Down
2 changes: 1 addition & 1 deletion udev/99-vpc-policy-routes.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SUBSYSTEM=="net", ACTION=="remove", ENV{ID_NET_DRIVER}=="vif|ena|ixgbevf", RUN+="/usr/bin/systemctl disable --now refresh-policy-routes@$name.timer policy-routes@$name.service"
SUBSYSTEM=="net", ACTION=="add", ENV{ID_NET_DRIVER}=="vif|ena|ixgbevf", RUN+="/usr/bin/systemctl enable --now --no-block policy-routes@$name.service refresh-policy-routes@$name.timer"
SUBSYSTEM=="net", ACTION=="add", ENV{ID_NET_DRIVER}=="vif|ena|ixgbevf", RUN+="/usr/bin/systemctl enable --now --no-block policy-routes@$name.service"

0 comments on commit 69085e1

Please sign in to comment.