From a262569cbf1c15fdb07e05eb8d003af8dd0d8903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Tue, 18 Feb 2014 11:31:48 -0500 Subject: [PATCH] upstart: Fix wrong stderr redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- config/init/upstart/lxc-net.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/init/upstart/lxc-net.conf b/config/init/upstart/lxc-net.conf index 86e9a719f..a84d8c87a 100644 --- a/config/init/upstart/lxc-net.conf +++ b/config/init/upstart/lxc-net.conf @@ -21,7 +21,7 @@ pre-start script [ "x$USE_LXC_BRIDGE" = "xtrue" ] || { stop; exit 0; } 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() { # dnsmasq failed to start, clean up the bridge iptables $use_iptables_lock -D INPUT -i ${LXC_BRIDGE} -p udp --dport 67 -j ACCEPT @@ -74,7 +74,7 @@ post-stop script if [ -d /sys/class/net/${LXC_BRIDGE} ]; then 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 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