If you want the process to run forever regardless of whether you are logged in or not, consider starting the process as a daemon.
supervisord is a great solution that can be used to demonstrate any process. It has another supervisorctl management utility that can be used to monitor processes performed by the supervisor.
You do not need to write any additional code or modify existing scripts to make this work. Moreover, detailed documentation makes this process much easier.
After I looped my head around python-daemon for hours, the supervisor is a solution that worked for me in minutes.
Hope this helps someone trying to get python-daemon to work
Nikhil Sahu Oct 11 '16 at 12:46 on 2016-10-11 12:46
source share