In data venerdì 25 ottobre 2019 01:23:39 CEST, Carlos E. R. ha scritto:
On 24/10/2019 23.29, stakanov wrote:
I have the problem that spamd fails starting after suspend to disc and start, but runs well when started manually once the system is running.
It works fine here.
But is it processing an email at the precise instant you suspend the machine? That's a bad idea.
I therefore wanted to join the following variable to /etc/sysconfig/spamd --timeout-tcp=80
For what is worth, I have:
SPAMD_ARGS="-d -c --max-children=16 --max-conn-per-child=1"
this causes each child process to process a single email, then die, and have a maximun of 16 children running at the same time.
What I found in the web (https://spamassassin.apache.org/full/3.2.x/doc/spamd.html) is that the syntax should be: --timeout-tcp=number "This option specifies the number of seconds to wait for headers from a client (spamc) before closing the connection. The minimum value is 1, the default value is 30, and a value of 0 will disable socket timeouts completely."
But when I join the parameter in the above mentioned file I get: "ignoring invalid environment assignment --timeout-tcp=80':/etc/sysconfig/ spamd
I tried also to join it to the line: SPAMD_ARGS="-d -c -L" (Like SPAMD_ARGS="-d -c -L --timeout-tcp=80 ") but without any change.
Does anybody know were to correctly set the argument and if the syntax is right? Thank you in advance.
It can only work inside SPAMD_ARGS="..."
To check if if takes, do:
ps afxu | grep spamd
in my case:
root 3993 0.0 0.0 213972 6892 ? Ss Oct22 0:16 /usr/bin/perl -T -w /usr/sbin/spamd -d -c --max-children=16 --max-conn-per-child=1 -r /var/run/spamd.pid root 3996 0.0 0.0 213972 2736 ? S Oct22 0:00 \_ spamd child root 3997 0.0 0.0 213972 2776 ? S Oct22 0:00 \_ spamd child cer 22783 0.0 0.0 7472 832 pts/35 S+ 01:21 0:00 | | \_ grep --color=auto spamd And you can see my options took. O.K. seems that it works now. I think it was a line in the bottom that I did forget to comment out / eliminate. So it did throw the error. Thanks.
_________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org