Connection = {connection,
{irc_conn, start_link, [Instance, Supervisor, TableId]},
permanent, % persistence type ("Restart" in the manual)
- 5, % shutdown [sends signal, with timeout for response]
+ brutal_kill, % shutdown [irc_conn doesn't actually cleanup]
worker, % it's not a supervisor itself
[irc_conn] % modules it uses
},
ObjectSup = {object_sup,
{irc_object_sup, start_link, [Instance, Supervisor, TableId]},
permanent,
- 5,
+ infinity,
supervisor,
[irc_object_sup]
},
{Instance, % child's name
{irc_net_sup, start_link, [Instance]}, % MFA
permanent, % Restart
- 5, % shutdown [timeout of 5 seconds]
+ infinity, % shutdown [infinite timeout for supervisors, as per docs]
supervisor,
[irc_net_sup]
}.