Re: How to run fetchmail as daemon at startup
On Thu, 22 Mar 2007 11:42:54 -0400
Greg Folkert <greg@gregfolkert.net> wrote:
[snip]
> Sorry, but running fetchmail as a daemon is the worst possible way to
> run fetchmail.
>
> Run it as a cronjob as a job as your user. It will work. You just need
> to setup your .fetchmailrc properly.
>
> ANYTIME I've run fetchmail as a system daemon it dies sooner or later.
> Usually sooner. Or even better yet it stalls. never more to retrieve
> mail.
>
> I've always setup fetchmail to run as a cronjob every 10-30 minutes
> depending on you tastes. Any more often than 10 minutes runs the risk of
> colliding with another previous instance.
I use getmail, which is not even designed to run as a daemon. From the FAQ:
> How do I run getmail in "daemon" mode?
>
> Use your system's cron utility to run getmail periodically if you wish to
> have mail retrieved automatically at intervals. This is precisely what
> cron is designed to do; there's no need to add special code to getmail to
> do this.
>
> With a reasonably standard system cron utility, a crontab(5) entry like
> the following will make getmail retrieve mail every hour:
>
> 0 * * * * /usr/local/bin/getmail --quiet
Celejar
Reply to: