On Fri, 22 Aug 2003 22:23:00 +0200
Thomas Lamy <[EMAIL PROTECTED]> wrote:
> Tomasz Kojm wrote:
> > On Thu, 21 Aug 2003 11:40:29 -0400
> > "Travis Robertson" <[EMAIL PROTECTED]> wrote:
> >
> >
> >>I have tried running clamd in local socket mode. The first time it
> >>runs everything is ok, it creates the /var/run/clamd/clamd.socket.
> >>Whenever I reboot the server and it trys to build the socket, I get
> >>the error "ERROR:
> >
> >
> > You should stop clamd cleanly - eg. by sending the SIGTERM signal.
> >
> > Best regards,
> > Tomasz Kojm
> What about the following pseudo-code at startup of clamd (instead of
> failing):
>
> if (file exists(UNIX_SOCKET)) {
> if (connect(UNIX_SOCKET) != ERROR) {
> die ("Socket already exists");
> }
> warn ("Socket already exists but is not connected - unclean
> shutdown?"); unlink (UNIX_SOCKET);
> }
OK, but this will be an option (something like FixSocket or so) in
clamav.conf.
Best regards,
Tomasz Kojm
--
oo ..... [EMAIL PROTECTED]
(\/)\......... http://www.konarski.edu.pl/~zolw
\..........._ I nie zapomnij kliknac w brzuszek...
//\ /\\ <- C. Amboinensis www.pajacyk.pl
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users