From 6779c5d9098891f63dd06bac07177e179526d4bb Mon Sep 17 00:00:00 2001 From: ThibaultDECO <80053070+ThibaultDECO@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:26:14 +0100 Subject: [PATCH] Update clamav-clamonacc.service.in Allowing the service to shutdown instead of ignoring SIGTERM and waiting for 1m30s, which is extremely irritating and blocking the shutdown of the machine --- clamonacc/clamav-clamonacc.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/clamonacc/clamav-clamonacc.service.in b/clamonacc/clamav-clamonacc.service.in index f103d86658..fa7dfb03b1 100644 --- a/clamonacc/clamav-clamonacc.service.in +++ b/clamonacc/clamav-clamonacc.service.in @@ -12,6 +12,7 @@ Type=simple User=root ExecStartPre=/bin/bash -c "while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done" ExecStart=@prefix@/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine +ExecStop=/bin/kill -SIGKILL $MAINPID [Install] WantedBy=multi-user.target