-
-
Save AnjaneyuluBatta505/0907e3dcdb1745057f4d50a645a6f9fa to your computer and use it in GitHub Desktop.
Example supervisor config file /etc/supervisor/conf.d/myapp.conf
This file contains 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:myapp] | |
autostart = true | |
autorestart = true | |
command = python /home/pi/myapp.py | |
environment=SECRET_ID="secret_id",SECRET_KEY="secret_key_avoiding_%_chars" | |
stdout_logfile = /home/pi/stdout.log | |
stderr_logfile = /home/pi/stderr.log | |
startretries = 3 | |
user = pi |
This file contains 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
$ sudo apt-get install supervisor | |
$ sudo touch /etc/supervisor/conf.d/myapp.conf | |
$ sudo supervisorctl start myapp | |
$ sudo supervisorctl tail myapp | |
$ sudo supervisorctl status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment