How to start process as a daemon?
Posted
by
Markus Johansson
on Server Fault
See other posts from Server Fault
or by Markus Johansson
Published on 2013-10-26T10:42:26Z
Indexed on
2013/10/26
15:56 UTC
Read the original article
Hit count: 421
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?
© Server Fault or respective owner