In Erlang, I have a supervisor (my_sup) module to starts and monitor the gen_server process (my_gen). When the my_gen is modified, compiled and loaded, I need to restart the application.
Is there any better way to kill all the process (gen_server) by the supervisor (my_sup) and restart the process (gen_server) again?