Skip to content

Commit

Permalink
supervisor: fix sogod logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored May 15, 2024
1 parent 7893e51 commit 9feaa46
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ logfile=/dev/null
logfile_maxbytes=0

[program:sogo]
command=/usr/sbin/sogod -WONoDetach YES -WOLogFile /dev/fd/1 -WOPort localhost:20000
command=/usr/sbin/sogod -WONoDetach YES -WOLogFile /var/log/sogo/runtime.log -WOPort localhost:20000
user=sogo
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true

[program:sogo_logs]
command=/bin/bash -c 'log_file="/var/log/sogo/runtime.log"; while [ ! -f "$log_file" ]; do sleep 0.1; done; tail -f "$log_file"'
user=sogo
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
Expand Down

0 comments on commit 9feaa46

Please sign in to comment.