title: Erlang Dynamic supervisor start gen_server
body: <p>I have root supervisor that create other supervisor:</p>
  
  <pre><code>start_link() -&gt;
      supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  
  init([]) -&gt;
      RestartStrategy = {one_for_one, 5, 600},
      ListenerSup =
              {popd_listener_sup,
              {popd_listener_sup, start_link, []},
               permanent, 2000, supervisor, [popd_listener]},
  
      Children = [ListenerSup],
  
      {ok, {RestartStrategy, Children}}.
  </code></pre>
  
  <p>And i have gen_server - listener. How can i run this gen_server with <code>popd_listener_sup</code> supervisor, when supervisor created?</p>
  
  <p>Thank you.</p>