Skip to content

Instantly share code, notes, and snippets.

@alterEgo123
Created November 30, 2020 14:43
Show Gist options
  • Save alterEgo123/4f7622081729663b689e957f7a31dac9 to your computer and use it in GitHub Desktop.
Save alterEgo123/4f7622081729663b689e957f7a31dac9 to your computer and use it in GitHub Desktop.
Redirect python logging to supervisord's stdout
[supervisord]
nodaemon=true
user = root
[program:launcher]
command=python3 -u launcher.py
autostart = true
autorestart = true
stdout_logfile=/var/log/launcher.log
stderr_logfile=/var/log/launcher.log
[program:log]
command=tail -f /var/log/launcher.log
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment