Can not fully disable clamav on CentOS.

update #7
This commit is contained in:
Zhang Huangbin 2020-11-04 13:50:32 +08:00
parent 551faa3a28
commit 67ccbed711
2 changed files with 13 additions and 9 deletions

View File

@ -33,11 +33,13 @@ Uncomment above lines (removing "# " at the beginning of each line), and restart
You may want to stop and disable ClamAV service too since it's not
called by Amavisd or other programs anymore:
```
# CentOS
systemctl disable --now clamd@amavisd
systemctl restart amavisd
On CentOS, the systemd script for Amavisd service
(`/lib/systemd/system/amavisd.service`) has line
`Wants=clamd@amavisd.service`, this makes systemd to start `clamd@amavisd`
service each time before starting `amavisd` service, so you have to comment
out this line to disable clamav service.
```
# Debian/Ubuntu
systemctl disable --now clamav-daemon
systemctl restart amavis

View File

@ -61,11 +61,13 @@
<p>Uncomment above lines (removing "# " at the beginning of each line), and restart Amavisd service.</p>
<p>You may want to stop and disable ClamAV service too since it's not
called by Amavisd or other programs anymore:</p>
<pre><code># CentOS
systemctl disable --now clamd@amavisd
systemctl restart amavisd
# Debian/Ubuntu
<pre><code>On CentOS, the systemd script for Amavisd service
(`/lib/systemd/system/amavisd.service`) has line
`Wants=clamd@amavisd.service`, this makes systemd to start `clamd@amavisd`
service each time before starting `amavisd` service, so you have to comment
out this line to disable clamav service.
</code></pre>
<pre><code># Debian/Ubuntu
systemctl disable --now clamav-daemon
systemctl restart amavis