I've tried to use systemd, but the wpa_supplicant doesn't start. Furthermore it seems that is not detected if hot plugged.
I believe that I go for the udev rule
The only remaining doubt is how the dnsmasq will recognize the hot plug. Perhaps I should restart dnsmasq when plugging the WiFi dongle.