Skip to content

Commit

Permalink
add JoinsNamespaceOf for all netns-*@.service
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesits committed May 11, 2020
1 parent eecc50e commit 410f22a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ After=netns@%i.service
Before=network.target network-online.target
Conflicts=netns-nat@%i.service netns-mvbr@%i.service

JoinsNamespaceOf=netns@%I.service

[Install]
WantedBy=network-online.target
WantedBy=multi-user.target
Expand All @@ -19,4 +21,4 @@ ExecStart=/usr/bin/env netnsinit bridge %I up outside
ExecStart=/usr/bin/env ip netns exec %I /usr/bin/env netnsinit bridge %I up inside

ExecStop=/usr/bin/env ip netns exec %I /usr/bin/env netnsinit bridge %I down inside
ExecStop=/usr/bin/env netnsinit bridge %I down outside
ExecStop=/usr/bin/env netnsinit bridge %I down outside
2 changes: 2 additions & 0 deletions services/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ After=netns@%i.service
Before=network.target network-online.target
Conflicts=netns-nat@%i.service netns-bridge@%i.service netns-tunnel@%i.service

JoinsNamespaceOf=netns@%I.service

[Install]
WantedBy=network-online.target
WantedBy=multi-user.target
Expand Down
2 changes: 2 additions & 0 deletions services/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ After=netns@%i.service
Before=network.target network-online.target
Conflicts=netns-bridge@%i.service

JoinsNamespaceOf=netns@%I.service

[Install]
WantedBy=network-online.target
WantedBy=multi-user.target
Expand Down
2 changes: 2 additions & 0 deletions services/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ After=netns@%i.service
Before=network.target network-online.target
Conflicts=netns-mvbr@%i.service

JoinsNamespaceOf=netns@%I.service

[Install]
WantedBy=network-online.target
WantedBy=multi-user.target
Expand Down

0 comments on commit 410f22a

Please sign in to comment.