Skip to content

Instantly share code, notes, and snippets.

@beingadityak
Last active November 22, 2020 10:26
Show Gist options
  • Save beingadityak/c71e157ae79822c3c3587ee427498317 to your computer and use it in GitHub Desktop.
Save beingadityak/c71e157ae79822c3c3587ee427498317 to your computer and use it in GitHub Desktop.
TLDR instructions and template - Supervisor service

Instructions for modifying and using the conf file - Supervisor

  1. Install supervisor -> pip install supervisor
  2. Modify the template for your use case and save the file in /etc/supervisor/conf.d/<app-name>.conf Eg. /etc/supervisor/conf.d/sample-webapp.conf
  3. Run supervisorctl reread and supervisorctl update all
  4. Verify the status with supervisorctl status all
[program:sample-webapp]
command=/var/www/webapp.bin
autostart=true
autorestart=true
stderr_logfile=/var/log/sample-webapp.err.log
stdout_logfile=/var/log/sample-webapp.out.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment