Re: [Clamav-users] Clamd Dies after zip attachment in email
On Wed, 2005-06-29 at 09:07 -0700, Dale Anderson wrote: > I just updated my clamav to version 0.86.1/960 > I had to change the clamd.conf I was receiving when > tring to start Clamd. StreamSaveToDisk not supported. > So I alter the clamd.conf that came with the update > version and now clamd dies when I send an zip > attachment through it. It worked on the previous > version just fine. Any suggestions I believe it does > have something to do with the StreamSaveToDisk option > that is nolonger supported. Upgrade your zlib. -trog signature.asc Description: This is a digitally signed message part ___ http://lurker.clamav.net/list/clamav-users.html
Re: [Clamav-users] Clamd Dies
Thomas Kinghorn wrote: Hi List I have a problem with clamd dying without warning. Nothing appears in the log files. You need to put a watchdog script in place that runs out of cron. Clamd has severe memory management problems and will use all you have - your cron script should look for two things: Is clamd in the proc table, and is the memory size it is using appropriate? I'm using a tcp/ip socket so I poll that as well just to be sure it is not just running but responding. If memory usage grows above 350 meg my script will kill and restart clamd (the memory usage immediately drops below 20 meg). This has been a problem since I began using it at v. 0.65 . I'm currently running CVS from Thursday of last week. It would be nice to avoid needing such a script. Although a watchdog for any critical daemon is a good idea, this one is necessarily brutal. dp --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Clamd Dies
* Thomas Kinghorn <[EMAIL PROTECTED]> [20040726 10:26]: wrote: > Hi List > > I have a problem with clamd dying without warning. > Nothing appears in the log files. > > Below are the lst entries in the log: > > Sun Jul 25 04:20:37 2004 -> Reading databases from /usr/local/share/clamav > Sun Jul 25 04:20:47 2004 -> Database correctly reloaded (22911 viruses) > Sun Jul 25 04:50:39 2004 -> > /var/spool/exim/scan/1BoZ5W-0003UI-85/1BoZ5W-0003UI-85.eml: Worm.Mydoom.J > FOUND > Sun Jul 25 05:35:32 2004 -> SelfCheck: Database status OK. > Sun Jul 25 06:38:05 2004 -> SelfCheck: Database status OK. > Sun Jul 25 07:46:58 2004 -> SelfCheck: Database status OK. > Sun Jul 25 09:00:58 2004 -> SelfCheck: Database status OK. > Sun Jul 25 10:03:08 2004 -> SelfCheck: Database status OK. > Sun Jul 25 11:11:03 2004 -> SelfCheck: Database status OK. > (END) > > This morning I got in to work and it had failed. > > Clamd -V produces: > > clamd / ClamAV version 0.72 > > Any ideas where to look would be appreciated. in clamav.conf enable the following options Debug LeaveTemporaryFiles You will then get clues ;) cheers - wash +--+-+ Odhiambo Washington . WANANCHI ONLINE LTD (Nairobi, KE) | . 1ere Etage, Loita Hse, Loita St., | GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI | GSM: (+254) 733 744 121 . (+254) 020 313 985 - 9 | +-+--+ "Oh My God! They killed init! You Bastards!" --from a /. post --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Clamd Dies
On Mon, 2004-07-26 at 08:03, Thomas Kinghorn wrote: > Hi List > > I have a problem with clamd dying without warning. > Nothing appears in the log files. > This morning I got in to work and it had failed. > > Clamd -V produces: > > clamd / ClamAV version 0.72 > > Any ideas where to look would be appreciated. > Update to 0.75 -trog signature.asc Description: This is a digitally signed message part
Re: [Clamav-users] clamd dies with no explenation
Does anyone have a workaround for this issue? -gvb On Fri, 13 Feb 2004, Tomasz Kojm wrote: > On Fri, 13 Feb 2004 11:30:34 -0800 (PST) > GVB <[EMAIL PROTECTED]> wrote: > > > I am running FreeBSD 4.9 w/ sendmail -> mimedefang -> clamav and > > spamassasin. > > The problem is in the mimedefang and FreeBSD - mimdefang closes > connection with clamd as soon as first error appears and when clamd > tries to write to the socket, the system generates a SIGPIPE signal > which should be ignored but for some reasons it's not. I think the only > solution is to fix mimedefang to wait to the end of scanning. > > Best regards, > Tomasz Kojm > -- > oo. [EMAIL PROTECTED] www.ClamAV.net > (\/)\. http://www.clamav.net/gpg/tkojm.gpg > \..._ 0DCA5A08407D5288279DB43454822DC8985A444B > //\ /\Fri Feb 13 21:37:56 CET 2004 > --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies with no explenation
On Fri, 13 Feb 2004 11:30:34 -0800 (PST) GVB <[EMAIL PROTECTED]> wrote: > I am running FreeBSD 4.9 w/ sendmail -> mimedefang -> clamav and > spamassasin. The problem is in the mimedefang and FreeBSD - mimdefang closes connection with clamd as soon as first error appears and when clamd tries to write to the socket, the system generates a SIGPIPE signal which should be ignored but for some reasons it's not. I think the only solution is to fix mimedefang to wait to the end of scanning. Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] www.ClamAV.net (\/)\. http://www.clamav.net/gpg/tkojm.gpg \..._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Fri Feb 13 21:37:56 CET 2004 pgp0.pgp Description: PGP signature
RE: [Clamav-users] clamd dies with no explenation
Are you saying that if clamd hits some sort of configurable limit that the daemon is just supposed to die? -gvb On Fri, 13 Feb 2004, Rob wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of GVB > > Sent: 13 February 2004 19:31 > > > > clamd seems to die for no apparent reason.. here is what I > > had from logs: > > > > From ClamAV debug: > > - > > LibClamAV debug: Zip -> DMSscan.psd: Size exceeded (13992803, > > max: 10485760) > > - > > > > From ClamAV syslog: (Note the last line "ERROR") > > - > > Tue Feb 10 23:51:21 2004 -> > > /var/spool/MIMEDefang/mdefang-i1B7omll041275/Work/m > > sg-39331-137.zip: File size limit exceeded. > > ERROR > > - > > I dunno, that seems pretty apparent to me. > > Read, in particular, the line in the debug log. The ZIP file extracted to > 13992803 (roughly 13MB), with the limit set at 10485760 - the default 10MB. > Increase the ArchiveMaxFileSize in clamav.conf. > > -- > Rob > > > --- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > ___ > Clamav-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/clamav-users > --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] clamd dies with no explenation
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of GVB > Sent: 13 February 2004 19:31 > > clamd seems to die for no apparent reason.. here is what I > had from logs: > > From ClamAV debug: > - > LibClamAV debug: Zip -> DMSscan.psd: Size exceeded (13992803, > max: 10485760) > - > > From ClamAV syslog: (Note the last line "ERROR") > - > Tue Feb 10 23:51:21 2004 -> > /var/spool/MIMEDefang/mdefang-i1B7omll041275/Work/m > sg-39331-137.zip: File size limit exceeded. > ERROR > - I dunno, that seems pretty apparent to me. Read, in particular, the line in the debug log. The ZIP file extracted to 13992803 (roughly 13MB), with the limit set at 10485760 - the default 10MB. Increase the ArchiveMaxFileSize in clamav.conf. -- Rob --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies forever!
On Thu, 2 Oct 2003 09:55:04 +0300 Odhiambo Washington <[EMAIL PROTECTED]> wrote: > Okay, I know this is not good at all, that I run the CVS version of > clamav > on a production box. It's suicide. I've run the daily snapshots for > some > time without disappointment when it comes to supervising the > service with > daemontools. However, something in CVS seems to completely defy > daemontools! > For two days now, this has happened, but unfortunately I have not > captured > any data. Not core dump at all. > Which one amongst the snapshots do people find more stability in? > I think clamav-devel-20030929 was the last one that never died > completely on me. > > > > -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! :-) > > This fortune is false. > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf I know this has been covered extensively, but nonetheless I feel I should ask: Could you post your daemontools run and log/run files? I've been trying to use svscan to keep clamd active, and I have run into one of two scenarios: 1 - The service starts another child of itself every second or so until the process table is full 2 - The service re-starts itself every second or so until the log file / partition is full I have tried all the variants I have come across in the list archive, the settings from http://clamav.elektrapro.com/doc/clamd_supervised/clamd-daemontools-guide.txt, etc. all to no avail. Perhaps there should be a doc/clamd_supervised page that lists all the varients that have worked for people by OS? -- Ed Vázquez ~ A man of learning is never bored. - Jean Paul Richter --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies forever!
Odhiambo Washington wrote: Okay, I know this is not good at all, that I run the CVS version of clamav on a production box. It's suicide. I've run the daily snapshots for some time without disappointment when it comes to supervising the service with daemontools. However, something in CVS seems to completely defy daemontools! For two days now, this has happened, but unfortunately I have not captured any data. Not core dump at all. for the record: we are seeing the same here - the latest snapshots sometimes just hang(especially under load - disabling pthread-support seems to help). Stefan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies forever!
> Okay, I know this is not good at all, that I run the CVS version of clamav > on a production box. It's suicide. I've run the daily snapshots for some > time without disappointment when it comes to supervising the service with > daemontools. However, something in CVS seems to completely defy daemontools! > For two days now, this has happened, but unfortunately I have not captured > any data. Not core dump at all. > Which one amongst the snapshots do people find more stability in? > I think clamav-devel-20030929 was the last one that never died completely on me. Thanks for the report. I just started debugging under FreeBSD. Some BSD fixes should be available on Monday. Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] (\/)\. http://www.konarski.edu.pl/~zolw \..._ I nie zapomnij kliknac w brzuszek... //\ /\\ <- C. Amboinensiswww.pajacyk.pl --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
In my next port I will release with variables (CLAMUSER and CLAMGROUP ) sepcifically for users to set. The reason you have to chown a few things is because the install script has _clamd hardcoded into it. This will also change to CLAMUSER and CLAMGROUP. Regards, Flinn On Tuesday, September 16, 2003, at 03:54 PM, Lynn Duerksen wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Kojm Sent: Tuesday, September 16, 2003 10:23 AM To: [EMAIL PROTECTED] Subject: Re: [Clamav-users] clamd dies I have not seen anyone with a solution so far for my Postfix-Spamassassin-Openbsd3.3-Amavisd-new setup. On the latest version freshclam even bombs now. Run the following script from crontab Freshclam bombs ? Can't believe ;) Although it does not happen as often as clamd on occasion it does need to be restarted. It had gone 11 days without needing restarting but this morning it needed restarting twice in 1 hour. I still wonder if it has to do with running amavisd in chroot jail under user amavisd. Is there a guide somewhere for running it in chroot jail. I have gotten all kinds of advice from different sources and I usually have to do some tweaking of each to make it work. I know that the OpenBSD port has the user "_clamd" coded into the port. I modify the Makefile and set it to user amavisd but still have to come back and chown on some files and directories that were set to user "_clamd". My log of restarts: -- -- checkclam log grep "restarting" -- -- Sep 4 22:30:01 restarting clamd daemon Sep 5 09:30:01 restarting clamd daemon Sep 5 14:30:01 restarting freshclam daemon Sep 5 15:00:01 restarting freshclam daemon Sep 5 20:30:01 restarting clamd daemon Sep 9 22:00:01 restarting clamd daemon Sep 10 21:30:01 restarting clamd daemon Sep 11 11:00:01 restarting clamd daemon Sep 14 21:30:01 restarting clamd daemon Sep 16 10:00:02 restarting freshclam daemon Sep 16 10:30:01 restarting freshclam daemon> -- -- end checkclam log -- -- My clamav.conf settings -- -- clamav.conf -- -- LogFile /var/amavisd/var/log/clamd.log LogTime LogVerbose PidFile /var/run/clamd.pid DataDirectory /var/amavisd/usr/local/share/clamav LocalSocket /var/amavisd/clamd.sock MaxConnectionQueueLength 30 MaxThreads 10 MaxDirectoryRecursion 15 User amavisd ArchiveMaxFileSize 10M ArchiveMaxRecursion 5 ArchiveMaxFiles 1000 -- -- end clamav.conf -- -- --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
> > Freshclam bombs ? Can't believe ;) > > Although it does not happen as often as clamd on occasion it does need > to be restarted. It had gone 11 days without needing restarting but > this morning it needed restarting twice in 1 hour. Do you have some logs from freshclam ? > I still wonder if it has to do with running amavisd in chroot jail under > user amavisd. Is there a guide somewhere for running it in chroot jail. > I have gotten all kinds of advice from different sources and I usually > have to do some tweaking of each to make it work. Please google, I saw some guides on that. Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] (\/)\. http://www.konarski.edu.pl/~zolw \..._ I nie zapomnij kliknac w brzuszek... //\ /\\ <- C. Amboinensiswww.pajacyk.pl --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
> I am having the same problem with OpenBSD 3.3 > > Clamd sometimes "just" stops running. I don't have freshclamd running.. This is fixed in CVS. Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] (\/)\. http://www.konarski.edu.pl/~zolw \..._ I nie zapomnij kliknac w brzuszek... //\ /\\ <- C. Amboinensiswww.pajacyk.pl --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
I am having the same problem with OpenBSD 3.3 Clamd sometimes "just" stops running. I don't have freshclamd running.. so no idea about that Wouter Lynn Duerksen wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Kojm Sent: Tuesday, September 16, 2003 10:23 AM To: [EMAIL PROTECTED] Subject: Re: [Clamav-users] clamd dies I have not seen anyone with a solution so far for my Postfix-Spamassassin-Openbsd3.3-Amavisd-new setup. On the latest version freshclam even bombs now. Run the following script from crontab Freshclam bombs ? Can't believe ;) Although it does not happen as often as clamd on occasion it does need to be restarted. It had gone 11 days without needing restarting but this morning it needed restarting twice in 1 hour. I still wonder if it has to do with running amavisd in chroot jail under user amavisd. Is there a guide somewhere for running it in chroot jail. I have gotten all kinds of advice from different sources and I usually have to do some tweaking of each to make it work. I know that the OpenBSD port has the user "_clamd" coded into the port. I modify the Makefile and set it to user amavisd but still have to come back and chown on some files and directories that were set to user "_clamd". My log of restarts: -- -- checkclam log grep "restarting" -- -- Sep 4 22:30:01 restarting clamd daemon Sep 5 09:30:01 restarting clamd daemon Sep 5 14:30:01 restarting freshclam daemon Sep 5 15:00:01 restarting freshclam daemon Sep 5 20:30:01 restarting clamd daemon Sep 9 22:00:01 restarting clamd daemon Sep 10 21:30:01 restarting clamd daemon Sep 11 11:00:01 restarting clamd daemon Sep 14 21:30:01 restarting clamd daemon Sep 16 10:00:02 restarting freshclam daemon Sep 16 10:30:01 restarting freshclam daemon> -- -- end checkclam log -- -- My clamav.conf settings -- -- clamav.conf -- -- LogFile /var/amavisd/var/log/clamd.log LogTime LogVerbose PidFile /var/run/clamd.pid DataDirectory /var/amavisd/usr/local/share/clamav LocalSocket /var/amavisd/clamd.sock MaxConnectionQueueLength 30 MaxThreads 10 MaxDirectoryRecursion 15 User amavisd ArchiveMaxFileSize 10M ArchiveMaxRecursion 5 ArchiveMaxFiles 1000 -- -- end clamav.conf -- -- --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] clamd dies
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Tomasz Kojm > Sent: Tuesday, September 16, 2003 10:23 AM > To: [EMAIL PROTECTED] > Subject: Re: [Clamav-users] clamd dies > > > > I have not seen anyone with a solution so far for my > > Postfix-Spamassassin-Openbsd3.3-Amavisd-new setup. On the latest > > version freshclam even bombs now. Run the following script from > > crontab > > Freshclam bombs ? Can't believe ;) Although it does not happen as often as clamd on occasion it does need to be restarted. It had gone 11 days without needing restarting but this morning it needed restarting twice in 1 hour. I still wonder if it has to do with running amavisd in chroot jail under user amavisd. Is there a guide somewhere for running it in chroot jail. I have gotten all kinds of advice from different sources and I usually have to do some tweaking of each to make it work. I know that the OpenBSD port has the user "_clamd" coded into the port. I modify the Makefile and set it to user amavisd but still have to come back and chown on some files and directories that were set to user "_clamd". My log of restarts: -- -- checkclam log grep "restarting" -- -- Sep 4 22:30:01 restarting clamd daemon Sep 5 09:30:01 restarting clamd daemon Sep 5 14:30:01 restarting freshclam daemon Sep 5 15:00:01 restarting freshclam daemon Sep 5 20:30:01 restarting clamd daemon Sep 9 22:00:01 restarting clamd daemon Sep 10 21:30:01 restarting clamd daemon Sep 11 11:00:01 restarting clamd daemon Sep 14 21:30:01 restarting clamd daemon Sep 16 10:00:02 restarting freshclam daemon Sep 16 10:30:01 restarting freshclam daemon> -- -- end checkclam log -- -- My clamav.conf settings -- -- clamav.conf -- -- LogFile /var/amavisd/var/log/clamd.log LogTime LogVerbose PidFile /var/run/clamd.pid DataDirectory /var/amavisd/usr/local/share/clamav LocalSocket /var/amavisd/clamd.sock MaxConnectionQueueLength 30 MaxThreads 10 MaxDirectoryRecursion 15 User amavisd ArchiveMaxFileSize 10M ArchiveMaxRecursion 5 ArchiveMaxFiles 1000 -- -- end clamav.conf -- -- --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
> I have not seen anyone with a solution so far for my > Postfix-Spamassassin-Openbsd3.3-Amavisd-new setup. On the latest > version freshclam even bombs now. Run the following script from crontab Freshclam bombs ? Can't believe ;) Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] (\/)\. http://www.konarski.edu.pl/~zolw \..._ I nie zapomnij kliknac w brzuszek... //\ /\\ <- C. Amboinensiswww.pajacyk.pl --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] clamd dies
I have not seen anyone with a solution so far for my Postfix-Spamassassin-Openbsd3.3-Amavisd-new setup. On the latest version freshclam even bombs now. Run the following script from crontab --- checkclam start -- #!/bin/sh exec 1>>/var/log/checkclam exec 2>&1 TIMESTAMP=`date +"%b %e %H:%M:%S"` # check for clamd daemon # if skill -n clamd if ps -aU amavisd | grep clamd | grep -v grep > /dev/null then echo $TIMESTAMP " clamd is running" else echo $TIMESTAMP " restarting clamd daemon" rm /var/amavisd/clamd.sock chroot -u amavisd /var/amavisd /usr/sbin/clamd fi if ps -aU amavisd | grep freshclam | grep -v grep > /dev/null then echo $TIMESTAMP " freshclam is running" else echo $TIMESTAMP " restarting freshclam daemon" rm /var/amavisd/clamd.sock chroot -u amavisd /var/amavisd /usr/bin/freshclam -d -c 12 -l /var/log/clam-update.log --datadir=/usr/local/share/clamav --log-verbose Fi --- checkclam end --- I am looking into DFB daemontools as a better solution. http://cr.yp.to/daemontools.html > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Nigel Horne > Sent: Friday, September 12, 2003 1:08 AM > To: [EMAIL PROTECTED] > Subject: Re: [Clamav-users] clamd dies > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thursday 11 Sep 2003 7:04 pm, Darek M wrote: > > > 2. clamd dies on me on signal 11 (core dump). Is this a > common issue? > > If so, is there a fix? > > What version of clamav, what operating system (distribution if Linux)? > > > Regardless of the last question, does anyone > > have a solid script that looks for clamd and restarts it if it is > > down? > > Same question as above. > > - -Nigel > > - -- > Nigel Horne. Arranger, Composer, Typesetter. > NJH Music, Barnsley, UK. ICQ#20252325 > [EMAIL PROTECTED] http://www.bandsman.co.uk > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE/YWKzhTUd3VwpF6IRAjNHAJsH9BPQXDKtTIykLA6rJkEIZ/zSvwCfaep3 > ZqISYmOhXwYhNWJQLz9/6eM= > =WRYj > -END PGP SIGNATURE- > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > Clamav-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/clamav-users > --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] clamd dies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 11 Sep 2003 7:04 pm, Darek M wrote: > 2. clamd dies on me on signal 11 (core dump). Is this a common issue? > If so, is there a fix? What version of clamav, what operating system (distribution if Linux)? > Regardless of the last question, does anyone > have a solid script that looks for clamd and restarts it if it is down? Same question as above. - -Nigel - -- Nigel Horne. Arranger, Composer, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/YWKzhTUd3VwpF6IRAjNHAJsH9BPQXDKtTIykLA6rJkEIZ/zSvwCfaep3 ZqISYmOhXwYhNWJQLz9/6eM= =WRYj -END PGP SIGNATURE- --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users