Closed casperklein closed 1 year ago
I don't think it's a supervisor issue. fetchmail
seems to recognize if it's run with a tty attached or not.
Running manually with | cat
appended, I get the same output as supervisor:
su -s /bin/bash fetchmail -c 'fetchmail -f /etc/fetchmailrc --nodetach --daemon 300 -i /var/lib/fetchmail/.fetchmail-UIDL-cache --pidfile /var/run/fetchmail/fetchmail.pid | cat'
I have this supervisor configuration for
fetchmail
:When I start
fetchmail
withsupervisorctl start fetchmail
and then check/var/log/supervisor/fetchmail.log
, I see a log entry like:fetchmail: starting fetchmail 6.4.16 daemon
However, if I run
fetchmail
manually withsu -s /bin/bash fetchmail -c 'fetchmail -f /etc/fetchmailrc --nodetach --daemon 300 -i /var/lib/fetchmail/.fetchmail-UIDL-cache --pidfile /var/run/fetchmail/fetchmail.pid'
,I see more output:
Does anyone have an idea, why the "sleeping/awakened" lines are missing, when running via supervisord?
Edit: In both cases, I see lines like this, when emails arrive:
1 message for foo@example.com at pop.example.net (13341 octets).
So only the
sleeping/awakened
lines seem problematic.