then
SMBD=`ps -e -o pid,comm | grep smbd | awk '{print $1}'`
NMBD=`ps -e -o pid,comm | grep nmbd | awk '{print $1}'`
- [ ! -z "$SMBD" ] && kill $SMBD
- [ ! -z "$NMBD" ] && kill $NMBD
+ [ ! -z "$SMBD" ] && kill -TERM $SMBD
+ [ ! -z "$NMBD" ] && kill -TERM $NMBD
sleep 2
fi