]> granicus.if.org Git - icinga2/commitdiff
Init script: Fix incorrect output redirection.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 12 Mar 2013 15:16:49 +0000 (16:16 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 12 Mar 2013 15:16:49 +0000 (16:16 +0100)
etc/init.d/icinga2.in

index 06ddb50907e7e226fb385e31027aaa31782dd196..c97f8b24499274761169234fc68ce8f69559e14d 100644 (file)
@@ -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