This question is not strictly programming related, but for sure important for programmers.
I wrote a simple smtp server, when I run it from console all is fine, except it is blocking the command line.
I know I can run it via
nohup ... &
or via screen / tmux etc
But the question is, how should I implement my program it runs in the background and it will be a pleasure for a system administrator to set it up and manage the process ?
Some guys with far more experience than me, at golang-nuts, wrote, they don't use fork etc, and use some "wrapper" in form from monit etc.
The target platform is Debian based, all other stuff on the box are init.d based.
Any good resources for that topic or sources of a well written example project ?