On Thu, 02 Apr 2020 20:42:49 +0300 Harri Suutari <hsuut...@gmx.com> wrote:
>
> Configuration file /etc/default/spamassassin has
>
> # Set nice level of spamd
> NICE="--nicelevel 15"
>
> but the spamd processes do not use the nice value.


I learned that the nice value actually has to be set via systemd, like
this:


# systemctl edit spamassassin.service

Text editor opens... put there:
[Service]
Nice=15

Save... it is saved to
/etc/systemd/system/spamassassin.service.d/override.conf

Restart service:
# systemctl restart spamassassin.service
or
# service spamassassin restart
or
# /etc/init.d/spamassassin restart


And the priority of the process is now lower (nicer).

--


      Harri

Reply via email to