Skip to content

Instantly share code, notes, and snippets.

@QuynhVir
Forked from danielrmeyer/supervisor
Created November 20, 2018 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuynhVir/8d80bfcf7b154b6e4a8d6120285d17fe to your computer and use it in GitHub Desktop.
Save QuynhVir/8d80bfcf7b154b6e4a8d6120285d17fe to your computer and use it in GitHub Desktop.
supervisor config to keep a python script running in home directory.
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment