Skip to content

Instantly share code, notes, and snippets.

@kvnramirez
Forked from danielrmeyer/supervisor
Created April 8, 2019 17:44
Show Gist options
  • Select an option

  • Save kvnramirez/f0c9b230a69e7a51eab4ecaa346e40cf to your computer and use it in GitHub Desktop.

Select an option

Save kvnramirez/f0c9b230a69e7a51eab4ecaa346e40cf 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