<div dir="ltr"><div>Works when LogFile is set to `none`</div><div><br></div>root@7f0bd3ca0e58:~# cat /etc/clamav/clamd.conf | grep LogFile<br>LogFile none<br>LogFileUnlock false<br>LogFileMaxSize 0<br>root@7f0bd3ca0e58:~# time DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true dpkg-reconfigure clamav-daemon<br>invoke-rc.d: could not determine current runlevel<br>invoke-rc.d: policy-rc.d denied execution of restart.<br><br>real       0m0.949s<br>user  0m0.260s<br>sys   0m0.030s<br><br><br><br>However, when logfile is populated, dpkg-reconfigure hangs forever, here I ^C after 30 seconds.<br><br>root@7f0bd3ca0e58:~# cat /etc/clamav/clamd.conf | grep LogFile<br>LogFile /var/log/clamav/clamav.log<br>LogFileUnlock false<br>LogFileMaxSize 0<br>root@7f0bd3ca0e58:~# time DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true dpkg-reconfigure clamav-daemon<br>^C<br><br>real      0m34.909s<br>user 0m23.450s<br>sys  0m9.110s<br></div>