- Install
supervisor
->pip install supervisor
- 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
- Run
supervisorctl reread
andsupervisorctl update all
- Verify the status with
supervisorctl status all
Last active
November 22, 2020 10:26
-
-
Save beingadityak/c71e157ae79822c3c3587ee427498317 to your computer and use it in GitHub Desktop.
TLDR instructions and template - Supervisor service
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: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