Hi Salvo, On 03.12.2012 11:05, Tollef Fog Heen wrote: > Then one should use --retry. s-s-d supports the behaviour you're > describing.
Could you please try the attached patch for the fetchmail sysv init script and let us know if that fixes your problem. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/init.d/fetchmail b/init.d/fetchmail index 3547271..592c0a2 100755 --- a/init.d/fetchmail +++ b/init.d/fetchmail @@ -157,7 +157,7 @@ case "$1" in exit 0 fi log_begin_msg "Stopping mail retriever agent:" "fetchmail" - if start-stop-daemon -K -o -q -p $PIDFILE -x $DAEMON -u $USER; then + if start-stop-daemon -K --retry 5 -o -q -p $PIDFILE -x $DAEMON -u $USER; then log_end_msg 0 else log_end_msg 1 @@ -166,11 +166,10 @@ case "$1" in ;; force-reload|restart) log_begin_msg "Restarting mail retriever agent:" "fetchmail" - if ! start-stop-daemon -K -o -q -p $PIDFILE -x $DAEMON -u $USER; then + if ! start-stop-daemon -K --retry 5 -o -q -p $PIDFILE -x $DAEMON -u $USER; then log_end_msg 1 exit 1 fi - sleep 1 if start-stop-daemon -S -q -p $PIDFILE -x $DAEMON -u $USER -c $USER -- $OPTIONS; then log_end_msg 0 else
signature.asc
Description: OpenPGP digital signature

