Created
June 27, 2016 17:03
-
-
Save danielrmeyer/068109840698c2ae944ee3219f57dfd9 to your computer and use it in GitHub Desktop.
supervisor config to keep a python script running in home directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:test] | |
command=/usr/bin/python /home/ubuntu/test.py | |
directory=/home/ubuntu | |
autostart=true | |
autorestart=true | |
startretries=3 | |
stderr_logfile=/home/ubuntu/test.err.log | |
stdout_logfile=/home/ubuntu/test.out.log | |
user=ubuntu |
I think you are needing some extra sections
@guruvishnuvardan try supervisord or supervisor instead of sudo service supervisor start
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there, just saw your question. I am messing around with this now, I will let you know if I figure out what your issue is