retour
darcs-hash:20020106150218-a279a-5716316a3040d5c0bf7e103fb8911e401ce1ee50.gz
This commit is contained in:
parent
bd018d4a0d
commit
1f65380e6b
1 changed files with 15 additions and 0 deletions
15
check-samba
Executable file
15
check-samba
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/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