On Thursday 18 March 2010 18:19:43 Jo Rhett wrote: > So I've been putting up with this for a few years, and just recently sat > down and tried to figure this out. I've now tried every possible way of > redirecting from the shell, and no matter what I always get the following > output to stderr. > > # /usr/local/sbin/amavisd reload 2>&1 1>/dev/null > Daemon [14925] terminated by SIGTERM, waiting for dust to settle... > becoming a new daemon... > > I haven't dug into the code, but it's clear that amavisd is resetting > stderr and writing directly to it. Why? > > And in particular, it would be nice to have a "--quiet" or another option > to just have it return a result code as to whether or not the > reload/restart was successful. For use in sa-update scripts, obviously > ;-)
This should do: amavisd reload >/dev/null 2>&1 Mark ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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/
