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

Riccardo Stagni unriccio at email.it
Sun Jul 30 19:44:06 UTC 2006


On Sun, Jul 30, 2006 at 07:25:34PM +0200, Nico Golde wrote:
> First thanks for your very good report. I attached a (for me 
> fixed) version of the init script. Can you test, if its ok 
> for you?
The script you sent me doesn't work (at least, for the awake part).
I think's it's because you use start-stop-daemon just as you were starting
fetchmail.

-- (from start-stop-daemon(8))
With --start, start-stop-daemon checks for the existence of a specified
process.  If such a process exists, start-stop-daemon does nothing, and
exits with error status 1 (0 if --oknodo is specified).
--

I start the script with awaken, it calls start-stop-daemon, that observes
(due the pidfile) that fetchmail is altrady running, and doesn't anything.
You can't start another process (and fetchmail have no --awaken option),
so there are two solutions:
* kill-and-restart the process every time the awaken option of the script
  is called
* use the old solution (launch a non-daemon fetchmail, that will end after
  mail check/download) using different options rispect the daemon start
  (as I suggested in the past mail :P)

Surely there is a lot of different (better?) solutions, but I have no
more ideas! :)

greetings
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/20060730/b019c3d2/attachment.pgp


More information about the pkg-fetchmail-maint mailing list