I have a web app on a freebsd server. An app is a single executable file, with a built-in webserver. My default shell is zsh.
When I'm running it as "./my_website &" and close a connection, it terminates. However, when I switch to bash by "/usr/local/bin/bash" and run my website the same way "./my_website &", then exit bash and close a connection, my website keeps working -- exactly what I need.
What's going on here -- why does it keep running in bash after I close a connection to my server?
Is it a good practice to run an app in background this way? If not, what's the proper way to run my website so that it won't terminate after I disconnect?