This one time, at band camp, Aaron M. Ucko said: > Stephen Gran <[EMAIL PROTECTED]> writes: > > > Unfortunately, the debconf setup is geared towards a default install, > > including clamav-daemon. The problem is that two daemons share the config > > file, the milter and clamd, so I had to move the config file into base, > > now that the milter no longer needs the daemon to run. I am not sure > > how to make it work much better than this, so if you have any > > suggestions, please let me know. > > Why not simply have the postrotate script verify that > /etc/init.d/clamav-daemon is runnable before proceeding? It can > either explicitly run > > eicd=/etc/init.d/clamav-daemon; test ! -x $eicd || $eicd reload > > or > /usr/sbin/invoke-rc.d --quiet clamav-daemon reload || test $? = 100 > > though the latter approach technically requires a dependency on > > sysv-rc (>= 2.85-3) | file-rc (>= 0.8.1)
I have thought some more about this, and I think the smartest way to handle all of this is to move the logrotate part of the code back into clamav-daemon. It makes for a lot of code redundancy, but it will at least Do The Right Thing (TM). When -3 or so comes out, it will probably not be smart enough to delete an unnecessary logrotate file, so you may still have to do that part manually, but it should be smart enough not to recreate it erroneously. Sorry about the breakage. -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : [EMAIL PROTECTED] | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
pgpCZhDcbiYCs.pgp
Description: PGP signature