Skip to content

Commit 1544c2f

Browse files
BelphemurJamesits
authored andcommitted
No need to use exec for IP command
1 parent 663ee06 commit 1544c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/netns-tunnel@.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ExecStart=/usr/bin/env ip link set ${DEVNAME_OUTSIDE} up
2727
ExecStart=/usr/bin/env ip link set ${DEVNAME_INSIDE} netns %I
2828
# let this fail silently if IPADDR_OUTSIDE is undefined
2929
ExecStart=-/usr/bin/env ip address add ${IPADDR_OUTSIDE} dev ${DEVNAME_OUTSIDE}
30-
ExecStart=/usr/bin/env ip netns exec %I /usr/bin/env ip link set ${DEVNAME_INSIDE} up
30+
ExecStart=/usr/bin/env ip -n %I link set ${DEVNAME_INSIDE} up
3131

3232
# do not run in ExecStartPost to prevent forked dhclient from being killed
3333
ExecStart=/usr/bin/env ip netns exec %I /usr/bin/env netnsinit tunnel %I

0 commit comments

Comments
 (0)