Empty log message

darcs-hash:20001001221954-7726f-6e6da4681f4e314ecab0689cae6e05d61e86027b.gz
This commit is contained in:
kieffer 2000-10-02 00:19:54 +02:00
parent 7343adf0c5
commit 766fa7b9d1

15
check-samba Executable file
View file

@ -0,0 +1,15 @@
#!/bin/zsh
#script shell par kif 01/10/00
master=`smbclient -N -L zamok |grep -A5 Master |grep CRANS |tail -c 6 `
echo -n `date` >>/var/log/samba-master
echo " : le maitre est $master " >>/var/log/samba-master
if [ "$master" != 'ZAMOK' ];
then
echo "Zamok n'est plus maitre ; je relance samba" >>/var/log/samba-master
/id/samba restart
#else
# echo zamok est encore maitre
fi