petits ajustements.

N.

darcs-hash:20030207132546-a279a-305d9959128454270b5afe432bd3a42786d2f6d0.gz
This commit is contained in:
stransky 2003-02-07 14:25:46 +01:00
parent 7f07072806
commit 0dff5c61c6

View file

@ -18,7 +18,7 @@ if [ "$master" != 'ZAMOK' ];
then
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
sleep 35
# on refait le test :
master=$(smbclient -N -L zamok |grep -A5 Master |grep CRANS | awk '{print $2}')
# Si on est sûr que ça chie, on sort les armes :
@ -26,9 +26,10 @@ then
then
echo "$(date) : Crans local master is \"$master\" ; restarting samba" >> $LOG
echo -n "$(date) : " >> $LOG
/id/samba stop >> $LOG 2>&1
/id/samba stop >> $LOG 2>&1
sleep 1
echo -n "$(date) : " >> $LOG
killall -9 nmbd && echo "remaining nmbd process killed" >> $LOG 2>&1 # tant qu'à faire on peut killer complètement nmbd
(killall -9 nmbd && echo "remaining nmbd process killed") >> $LOG 2>&1 # tant qu'à faire on peut killer complètement nmbd
echo -n "$(date) : " >> $LOG
/id/samba start >> $LOG 2>&1
else