Quanah,

> After doing a yum update on a RHEL5 box to take it to update 2, Amavis
> fails to start if it is not in debug mode.  The difference appears to be
> that in debug mode, Amavis never forks.

You are probably referring to the fork during daemonization,
which indeed is skipped in debug mode. Remaining forks
of child processes are normally done even in debug mode,
as long as $max_servers is greater than 1.

> When running outside of debug 
> mode, Amavis fails to fork a child, so thus refuses to start:
>
> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0x2b99c69b9470) = 8237
> --- SIGCHLD (Child exited) @ 0 (0) ---
> rt_sigprocmask(SIG_BLOCK, [INT], [INT], 8) = 0
> rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
> close(7)                                = 0
> exit_group(0)                           = ?
>
> Since debug mode works, it's hard to gather data on why children won't
> fork.  Any thoughts?

Was the above strace/truss collected with an -f option?
If not, it should be, as apparently the problem is in a
cloned process, not in a parent.
Adding timestamps (strace -tt) might be useful too.

I wonder why a perl fork is implemented as a sys_clone...


Btw, don't know if it would help, but the daemonization step
can be skipped by fiddling with 'background' and 'setsid' options
in a call to Net::Server::new (see Net::Server man page):

# set up Net::Server configuration
my($server) = Amavis->new({
...
    background => $daemonize ? 1 : undef,
    setsid     => $daemonize ? 1 : undef,

but I haven't tried it.


  Mark

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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