From 377eaa99c654d3c4540e7726caf8d562814a311e Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 26 Mar 2009 19:14:10 +0100 Subject: [PATCH 03/15] Remove bashism: "&> word" should be ">word 2>&1" --- config/ctdb.init | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ctdb.init b/config/ctdb.init index 133fa28..31e4d50 100755 --- a/config/ctdb.init +++ b/config/ctdb.init @@ -153,7 +153,7 @@ start() { stop() { echo -n $"Shutting down ctdbd service: " - ctdb ping >& /dev/null || { + ctdb ping > /dev/null 2>&1 || { echo -n " Warning: ctdbd not running ! " case $init_style in suse) @@ -205,7 +205,7 @@ restart() { status() { echo -n $"Checking for ctdbd service: " - ctdb ping >& /dev/null || { + ctdb ping > /dev/null 2>&1 || { RETVAL=$? echo -n " ctdbd not running. " case $init_style in -- 1.6.2