How to start process as a daemon?
- by Markus Johansson
I have created a service which consists of a web fronted (nginx), python runner glue handler (uwsgi) and my own python code (fetcher). I have made a script (deploy.sh) to start the difference services:
nginx
uwsgi --ini inifie.ini
python fetcher.py & disown
My question is regarding how I start my python daemon. I want it to run in the background. It should not print anything to my current terminal. If I add "print" calls to my fetcher script I currently see them in the terminal window.
So my question is: how do I start my fetcher.py script as a daemon?