At 8/23/03 04:10 PM , Greg Ennis wrote:

>...when I boot the system spamd is started and I get no failure notice in
>the logs, but when I look for it as a process after about 30 seconds it is
>gone.  When I use /etc/init.d/spamassassin start to activate it again it
>dies again.  The only way I can get spamd to stay resident is to start it
>on the command line as spamd -d.

The -d options *should* be necessary to keep it around; that's the
"daemonize" flag, which tells spamd to detach from the invoking shell and
run in the background as a daemon. My usual spamd invocation, for example,
is:

   /usr/local/bin/spamd -m 4 -d

, which tells spamd not to run more than 4 instances of itself, and to run
as a daemon.

>I have included the spamassassin start/stop script below.  Has anyone else
>had this problem with 8.0?

Sorry, I'm not currently using Red Hat. But I do notice something about
this init script...

># See how we were called.
>case "$1" in
>   start)
>         # Start daemon.
>         echo -n "Starting spamd: "
>         daemon spamd $SPAMDOPTIONS

That last line is what's supposed to actually start spamd. Apparently the
$SPAMDOPTIONS environment variable should be set ahead of time, somehow.
(And it should include a -d in it.) I can see why RH set things up that
way; to make it easy to tweak your spamd options (add or remove things like
my "-m 4" above, for example.) But the init script itself includes nothing
that would set that variable, and I can't imagine how it would be set in
the normal boot process, either.

My suggestion would be to add " -d" after $SPAMDOPTIONS in the script.
Assuming you normally start and stop your daemons using the init scripts,
this will fix the problem both from the command line and during standard
bootup sequence.

                                                 --Kai MacTane
----------------------------------------------------------------------

Kai,

Thank you for your suggestions.  Your interpretation was helpful; I'll
change the scripts!  After reviewing them I could not see how they would
work either.

Why do you limit spamd to 4 processes?

Thanks again!!!

Greg



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to