Bug#380459: [pkg-fetchmail-maint] Bug#380459: /etc/init.d/fetchmail awaken really doesn't anything

Riccardo Stagni unriccio at email.it
Mon Jul 31 19:10:17 UTC 2006


On Mon, Jul 31, 2006 at 08:21:50PM +0200, Nico Golde wrote:
> Ok after discussing the issue with upstream I decided to 
> take your initial method because fetchmail is able to decide 
> itself how to deal with a wake-up when called correctly. 
> Also if I like the signal based method alot more.

:(
Also I preferred the signal based solution.
It has a lot of benefits: first of all it prints prettier logs!

(su -c "etcetc")
 Jul 31 20:33:02 eddie fetchmail[3048]: No mail for abc at def.gh at pop.def.gh
 Jul 31 20:33:02 eddie fetchmail[3048]: No mail for ijk at lmn.op at pop.lmn.op 

(kill -SIGHUP ...)
 Jul 31 20:33:25 eddie fetchmail[2729]: awakened at Mon Jul 31 20:33:25 2006 
 Jul 31 20:33:27 eddie fetchmail[2729]: sleeping at Mon Jul 31 20:33:27 2006 

Note pids: my method starts another process, while the signal one simply
says "hello! Check mail please" to the existing process.


And in addition, (from fetchmail(1)), "The wake-up action also clears any
'wedged' flags indicating that connections have wedged due to failed
authentication or multiple timeouts."
So seems to be better in case of network/server problems or password
changes: the "su" method will start a new fetchmail, check mail and
terminate the process, leaving the background daemon hanging as it was
before, while the signal method _"should"_ work it out!

(the signal solution seems to me reeeaaally lovable!!!) :)

regards
Riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-fetchmail-maint/attachments/20060731/d99695e2/attachment.pgp


More information about the pkg-fetchmail-maint mailing list