supervisord disable log files or use logfile=/dev/stdout

Viewed 12363
[supervisord]
nodaemon=true
logfile=/dev/stdout
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor

When I do this supervisor will crash because it cannot seek in /dev/stdout

How can I disable supervisord creating any log files in my docker container?

3 Answers

I am with same problem so I checked supervisor documentation and the best way finded was:

[program:myservice]
command=/usr/local/bin/myservice.sh
autostart=true
autorestart=true
logfile_maxbytes=0
logfile_backups=0

In my case I keeped logfile_backup with value 3 and maxbytes 10000000 because I need this, I hope be help someone.

Related