Topic: AMAVIS - How to set Nice level
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 18.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache/NGinx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello, I want to set Amavis to a nice level around 15 so other services take priority. I have done a lot of looking and found where the file is that can accept a nice level, say Nice=15.
However that file amavis.service is in /run/systemd/generator.late and is "Automatically generated by systemd-sysv-generator" Any changes made to the file are overwritten.
I've tried putting the file amavis.service in /etc/systemd/system and /lib/systemd/system but systemd-sysv-generator or Amavis doesn't like that and throws an error.
Does anyone have any pointer on where to put the Nice=15 directive so that it will work?
Thanks in advance.
SOLVED see post below...
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.