* Thomas Lamy <[EMAIL PROTECTED]> [20030823 08:41]: 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); > }
I advocate this proposal. It will make life easier for us. Yesterday I had to commute back to the office because clamd died for some reason I still cannot determine, even though it's monitored by daemontools. -Wash -- Odhiambo Washington <[EMAIL PROTECTED]> "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Alden's Laws: (1) Giving away baby clothes and furniture is the major cause of pregnancy. (2) Always be backlit. (3) Sit down whenever possible. ------------------------------------------------------- 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