Got a module that should keep running in the background as a tcp server waiting and serving connections.
When I start my module by first running erlang shell and then calling my module, it works fine,
However, if I run it directly via erl -s or -eval -run etc, Supervisor that supervises tcp server complains no match for the right hand side..{error, closed} and fails.
System:Ubuntu 18
Update: Here is what might be wrong, Working on it...
Update: Solved by unlinking supervisor for now, will use proper releases in future.