From 11ab75bd856fc739f0d7a3b1d06892b38c00673d Mon Sep 17 00:00:00 2001 From: stransky Date: Sat, 1 Feb 2003 18:10:04 +0100 Subject: [PATCH] cosmetic darcs-hash:20030201171004-a279a-8580abd52c18c681de2a60e7b47a87952b30dad6.gz --- check-samba | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/check-samba b/check-samba index 83fe03b4..c3397a3c 100755 --- a/check-samba +++ b/check-samba @@ -16,7 +16,7 @@ master=$(smbclient -N -L zamok |grep -A5 Master |grep CRANS | awk '{print $2}') if [ "$master" != 'ZAMOK' ]; then - echo "$(date) : Crans local master is \"$master\" ; waiting to confirm" >> $LOG + echo "$(date) : Crans local master is \"$master\" ; waiting to confirm..." >> $LOG # on attend pour être sûr que zamok n'est pas justement en train de déclencher une élection : sleep 30 # on refait le test : @@ -24,8 +24,7 @@ then # Si on est sûr que ça chie, on sort les armes : if [ "$master" != 'ZAMOK' ]; then - echo "$(date) : Crans local master is \"$master\"" >> $LOG - echo "$(date) : restarting samba" >> $LOG + echo "$(date) : Crans local master is \"$master\" ; restarting samba" >> $LOG echo -n "$(date) : " >> $LOG /id/samba stop >> $LOG 2>&1 echo -n "$(date) : " >> $LOG