This one time, at band camp, Marc Haber said:
> On Sun, Aug 07, 2005 at 10:30:28AM +0200, Johan Thelmén wrote:
> > söndagen den 7 augusti 2005 10.01 skrev Marc Haber:
> > > Package: clamav
> > > Severity: wishlist
> > > 
> > > please give clamdscan an option to signal a running clamd to reload
> > > the databases. Alternatively, please include a clamdreload binary
> > > which does this.
> > 
> > Like this?
> > 
> > killall -USR2 clamd
> 
> If this is really identical, why does freshclam use a dedicated C
> function of 95 lines of code to parse the configuration file before
> talking to the daemon via the command socket?

Upstream developed the rough communication protocol (PING, RELOAD,
SHUTDOWN, etc), and they prefer to use it over signals.  However, for a
third party app, I think that using signals is appropriate.  I will put
a reload-database target in the init script that clamav-data can use.
Does that sound OK?
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to