Stop supervisor when no children are running anymore

Hi,

I’m using a Supervisor (one_for_one) supervising 2 GenServer (restart: :transient).

Is-there a way to stop automatically the Supervisor when the 2 children are stopped with {:stop, :normal} tuple?

Currently my 2 GenServers are stopped but my Supervisor keeps on running, doing nothing :slight_smile:

Help appreciated :wink: