From: Ronnie Sahlberg Date: Sun, 10 Jun 2007 22:42:51 +0000 (+1000) Subject: when public interface is not set, print this to the logfile before X-Git-Tag: tevent-0.9.20~348^2~2503^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47edceec09f2d87bd5035b2e86b41d417a6283a4;p=thirdparty%2Fsamba.git when public interface is not set, print this to the logfile before exiting the script (This used to be ctdb commit 79f4a9faea7583aad6f39733d019ba416a4be6e5) --- diff --git a/ctdb/config/events.d/10.interface b/ctdb/config/events.d/10.interface index ac2428047c1..35d9c01e13c 100755 --- a/ctdb/config/events.d/10.interface +++ b/ctdb/config/events.d/10.interface @@ -8,7 +8,10 @@ . /etc/ctdb/functions loadconfig ctdb -[ -z "$CTDB_PUBLIC_INTERFACE" ] && exit 0 +[ -z "$CTDB_PUBLIC_INTERFACE" ] && { + echo "Event script $0 : CTDB_PUBLIC_INTERFACE not set. Nothing to do." + exit 0 +} cmd="$1" shift