Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.34k stars 1.23k forks source link

supervisior not auto create stdout_logfile #1573

Closed BlackSinny closed 1 year ago

BlackSinny commented 1 year ago

my supervisor conf file like this

[program:xxxsrv]
directory=/data/projects/xxxsrv/
command=/data/projects/xxxsrv/xxxsrv -config=/data/projects/xxxsrv/qcloud.toml
stdout_logfile=/data/log/xxxsrv/xxxsrv.log
stdout_logfile_backups=50
redirect_stderr=true
autostart=true
autorestart=true

when i run command

supervisorctl restart xxxsrv

server running successfully,but nothing my log file /data/log/xxxsrv/xxxsrv.log

when i touch file,everything is ok

vim /data/log/xxxsrv/xxxsrv.log

my question

Should I have to manually create log files every time I start a new project?

when i mkdir log dir,file will created autoly

mnaberez commented 1 year ago

when i mkdir log dir,file will created autoly

Duplicate of #120

BlackSinny commented 1 year ago

Maybe I wasn't clear enough yesterday, I created the directory before running, but supervisor didn't automatically create log files after the restart