[icinga-checkins] icinga.org: icinga2/master: Init script: Fix shell redirection.

git at icinga.org git at icinga.org
Fri May 3 14:49:31 CEST 2013


Module: icinga2
Branch: master
Commit: d03d6e14bf57f31aa515ee4b86b6b99b55880d66
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=d03d6e14bf57f31aa515ee4b86b6b99b55880d66

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri May  3 14:49:21 2013 +0200

Init script: Fix shell redirection.

---

 etc/init.d/icinga2.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/etc/init.d/icinga2.in b/etc/init.d/icinga2.in
index e5b07cd..3f7cd27 100644
--- a/etc/init.d/icinga2.in
+++ b/etc/init.d/icinga2.in
@@ -105,7 +105,7 @@ status() {
 	printf "Icinga 2 status: "
 
 	pid=`cat $ICINGA2_PID_FILE`
-	if kill -CHLD $pid >/dev/null 2&>1; then
+	if kill -CHLD $pid >/dev/null 2>&1; then
 		echo "Running"
 	else
 		echo "Not running"





More information about the icinga-checkins mailing list