From: Gunnar Beutner Date: Tue, 12 Mar 2013 15:16:49 +0000 (+0100) Subject: Init script: Fix incorrect output redirection. X-Git-Tag: v0.0.2~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16e2fcdf2a119353f948fcf2a6c0fa03216f5d1d;p=icinga2 Init script: Fix incorrect output redirection. --- diff --git a/etc/init.d/icinga2.in b/etc/init.d/icinga2.in index 06ddb5090..c97f8b244 100644 --- a/etc/init.d/icinga2.in +++ b/etc/init.d/icinga2.in @@ -67,7 +67,7 @@ stop() { if kill -INT $pid >/dev/null 2>&1; then for i in 1 2 3 4 5 6 7 8 9 10; do - if ! kill -CHLD $pid >/dev/null 2&>1; then + if ! kill -CHLD $pid >/dev/null 2>&1; then break fi @@ -77,7 +77,7 @@ stop() { done fi - if kill -CHLD $pid >/dev/null 2&>1; then + if kill -CHLD $pid >/dev/null 2>&1; then kill -KILL $pid fi