Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
a262569c
Unverified
Commit
a262569c
authored
Feb 18, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upstart: Fix wrong stderr redirect
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
e8ea3116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc-net.conf
config/init/upstart/lxc-net.conf
+2
-2
No files found.
config/init/upstart/lxc-net.conf
View file @
a262569c
...
@@ -21,7 +21,7 @@ pre-start script
...
@@ -21,7 +21,7 @@ pre-start script
[
"x$USE_LXC_BRIDGE"
=
"xtrue"
] || {
stop
;
exit
0
; }
[
"x$USE_LXC_BRIDGE"
=
"xtrue"
] || {
stop
;
exit
0
; }
use_iptables_lock
=
"-w"
use_iptables_lock
=
"-w"
iptables
-
w
-
L
-
n
2
>&
1
> /
dev
/
null
||
use_iptables_lock
=
""
iptables
-
w
-
L
-
n
> /
dev
/
null
2
>&
1
||
use_iptables_lock
=
""
cleanup
() {
cleanup
() {
# dnsmasq failed to start, clean up the bridge
# dnsmasq failed to start, clean up the bridge
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
udp
--
dport
67
-
j
ACCEPT
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
udp
--
dport
67
-
j
ACCEPT
...
@@ -74,7 +74,7 @@ post-stop script
...
@@ -74,7 +74,7 @@ post-stop script
if
[ -
d
/
sys
/
class
/
net
/${
LXC_BRIDGE
} ];
then
if
[ -
d
/
sys
/
class
/
net
/${
LXC_BRIDGE
} ];
then
use_iptables_lock
=
"-w"
use_iptables_lock
=
"-w"
iptables
-
w
-
L
-
n
2
>&
1
> /
dev
/
null
||
use_iptables_lock
=
""
iptables
-
w
-
L
-
n
> /
dev
/
null
2
>&
1
||
use_iptables_lock
=
""
ifconfig
${
LXC_BRIDGE
}
down
ifconfig
${
LXC_BRIDGE
}
down
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
udp
--
dport
67
-
j
ACCEPT
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
udp
--
dport
67
-
j
ACCEPT
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
tcp
--
dport
67
-
j
ACCEPT
iptables
$
use_iptables_lock
-
D
INPUT
-
i
${
LXC_BRIDGE
} -
p
tcp
--
dport
67
-
j
ACCEPT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment