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
pull/1122/merge
ThibaultDECO 1 year ago committed by Micah Snyder
parent 3cfad8a0c2
commit 6779c5d909
  1. 1
      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

Loading…
Cancel
Save