Works when LogFile is set to `none`

root@7f0bd3ca0e58:~# cat /etc/clamav/clamd.conf | grep LogFile
LogFile none
LogFileUnlock false
LogFileMaxSize 0
root@7f0bd3ca0e58:~# time DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true dpkg-reconfigure clamav-daemon
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.

real 0m0.949s
user 0m0.260s
sys 0m0.030s



However, when logfile is populated, dpkg-reconfigure hangs forever, here I
^C after 30 seconds.

root@7f0bd3ca0e58:~# cat /etc/clamav/clamd.conf | grep LogFile
LogFile /var/log/clamav/clamav.log
LogFileUnlock false
LogFileMaxSize 0
root@7f0bd3ca0e58:~# time DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true dpkg-reconfigure clamav-daemon
^C

real 0m34.909s
user 0m23.450s
sys 0m9.110s

Reply via email to