FS#60959 - [clamav] logrotate config file kills clamav-milter

Attached to Project: Arch Linux
Opened by Filip (mezcal) - Monday, 03 December 2018, 11:27 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Every logrotating kills clamav-milter daemon and doesn`t start it again.

In the file /etc/logrotate.d/clamav there is a line:
"/bin/kill -HUP `cat /run/clamav/clamav-milter.pid 2>/dev/null` 2> /dev/null || true"


To use clamav-milter I have created my own clamav-milter service file:
[Unit]
Description='ClamAV Milter'
After=clamav-daemon.service

[Service]
Type=forking
ExecStart=/usr/bin/clamav-milter --config-file /etc/clamav/clamav-milter.conf

[Install]
WantedBy=multi-user.target



Additional info:
package version: 0.100.2-2

This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:15 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/clamav/issues/2
Comment by Thorsten (Thorsten) - Monday, 10 December 2018, 18:34 GMT
I had the same problem as [Filip] with the same clamav-milter.service.

I recommend to split /etc/logrotate.d/clamav logrotate config file into:
- /etc/logrotate.d/clamav
- /etc/logrotate.d/freshclam
- /etc/logrotate.d/clamav-milter

Content of files must be adapted.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Levente Polyak (anthraxx) - Saturday, 02 September 2023, 14:17 GMT
splitting the logrotate config wouldn't really mitigate this issue. What you'd want in your service is something like `Restart=`.

Loading...