From: Matthias A. <mat...@gm...> - 2017-05-19 18:55:47
|
Am 19.05.2017 um 08:24 schrieb Christopher Mudersbach: > Since we are processing the emails after they downloaded we have multiple poll processes running that initiate the above commands. If one of those poll processes is initiating the fetchmail command and another one is already running we get the following message: > > fetchmail: WARNING: Running as root is discouraged. > fetchmail: another foreground fetchmail is running at 28646. > > Is there any way we can run multiple fetchmail processes at the same time? See Carlos E.R.'s message and my followup for an approach to do that. Regarding the messages you see, you are changing two items at the same time and drawing the wrong conclusion from the warning. The warning above is because you've run fetchmail from a privileged account (root), not because you're running it twice. In the latter case you'd get different diagnostics. Be sure that whatever runs your 50 fetchmail processes with the individual configuration data: 1. also gives each process their own .fetchids file and .pid file location, easiest done through the FETCHMAILHOME environment variable (also see the env(1) manual page) which flips the whole set of directories in one go; 2. you run fetchmail from an unprivileged user account, not root or toor or similar. |