This post is more a note for myself than anything else, but I wrote it here as it can also be useful for you. It explains how to daemonize a tornado application in three easy steps:
Add this import line at the beginning of my-app.py:
- Add these 3 lines in the main() function, just before the
That's all folks.