John,

> The work-around that I've patched together is a total hack, but it
> works. Here's the script that I run every 5 minutes from cron.
> ...
>    echo "Running amavisd-nanny for 3 minutes to clean up stuck processes."
>    /usr/local/bin/limit 180 /usr/sbin/amavisd-nanny 1>/dev/null 2>/dev/null
>
> The limit program is from chapter 13 of Unix for Programmers and Users
> (3rd ed.) and the code is available here:
> ftp://ftp.prenhall.com/pub/esm/the_apt_series.s-042/glass_ables_unix-3e/exp
>anded/ch13/
>
> It basically waits for X seconds (in this case 180) and if the program
> is still running after X seconds, it kills it. This allows me to run
> amavisd-nanny for 3 minutes without direct user intervention.

Btw, the amavisd-new-2.6.0 will provide an option -c count
to amavisd-nanny and amavisd-agent to limit the repeat count
of a display, so '-c 1' will avoid a need for the 'limit' trick.
Thanks for pointing out a usage deficiency.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to