on move tout a dans /usr/scripts/archives
darcs-hash:20011221212555-a279a-121af29168739a91cc51cf72acef9af7f0ed96c2.gz
This commit is contained in:
parent
8c71d8f410
commit
c7a90e2085
27 changed files with 0 additions and 1066 deletions
15
check-samba
15
check-samba
|
@ -1,15 +0,0 @@
|
|||
#!/bin/zsh
|
||||
#script shell par kif 01/10/00
|
||||
|
||||
LOG=/var/log/CransMisc/samba-master.log
|
||||
master=`smbclient -N -L zamok |grep -A5 Master |grep CRANS |tail -c 6 `
|
||||
|
||||
if [ "$master" != 'ZAMOK' ];
|
||||
then
|
||||
echo -n `date` >> $LOG
|
||||
echo " : le maitre est $master " >> $LOG
|
||||
echo "Zamok n'est plus maitre ; je relance samba" >> $LOG
|
||||
/id/samba restart >> $LOG 2>&1
|
||||
#else
|
||||
# echo zamok est encore maitre
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue