From b249b8665c8e1d512d235340f5764a37ebfdd337 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 26 Mar 2009 23:00:10 +0100 Subject: [PATCH 15/15] Be more verbose with the cron command --- config/ctdb.init | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/config/ctdb.init b/config/ctdb.init index 7becc0d..f2c3e48 100755 --- a/config/ctdb.init +++ b/config/ctdb.init @@ -319,7 +319,17 @@ case "$1" in ;; cron) # used from cron to auto-restart ctdb - running || start_server + if ! running ; then + log_daemon_msg "Starting $DESC " "$NAME" + if start_server && running ; then + # It's ok, the server started and is running + log_end_msg 0 + else + # Either we could not start it or it is not running + # after we did + log_end_msg 1 + fi + fi ;; *) eval_gettext "Usage: $0 {start|stop|restart|status|cron|condrestart}" >&2 -- 1.6.2