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
signature.asc
Description: Digital signature

