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