Empty log message
darcs-hash:20001001221954-7726f-6e6da4681f4e314ecab0689cae6e05d61e86027b.gz
This commit is contained in:
parent
7343adf0c5
commit
766fa7b9d1
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
|
||||||
|
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue