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 ae87cfc commit 01a933b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Description=Set up policy routes for %I
StartLimitIntervalSec=10
StartLimitBurst=5
Wants=refresh-policy-routes@%i.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 01a933b

Please sign in to comment.