Oven not working and gas oder when turn it on

Sometimes the oven comes on but most of the time it will not work at all. You can smell gas when you turn it on and it doesnt light. Does it sound like the igniter?