search for: restart_nmbd

Displaying 1 result from an estimated 1 matches for "restart_nmbd".

Did you mean: restart_cmd
1998 Jun 02
0
SAMBA digest 1706
.../bin/sh # # If master host loses samba browse master, restart nmbd. # TMPFILE=/root/tmp/.grab$$ MASTER=lolead /usr/bin/smbclient -N -U guest -L ${MASTER} |\ /bin/sed -n '/Workgroup..*Master/,$p' > ${TMPFILE} b=$(/bin/fgrep ${MASTER} ${TMPFILE}) if [ "$b" ]; then if [ -f /root/RESTART_NMBD ]; then rm -f /root/RESTART_NMBD mail root <<EOF ${MASTER} nmbd regained browse master. EOF fi elif [ ! -f /root/RESTART_NMBD ]; then /bin/touch /root/RESTART_NMBD /usr/bin/killall -KILL nmbd /usr/sbin/nmbd -D echo "${MASTER} nmbd lost browse master:" >$...