Re: [Clamav-users] Autochecking script for clamd
On Mon, 1 Dec 2003 09:24:06 -0600 "Lynn Duerksen" <[EMAIL PROTECTED]> wrote: > I don't understand what you are getting at. My bandwidth is not an > issue at this time. If you are suggesting that I am wasting the > bandwidth and cpu time on the servers I download from, how would > checking for updates 4 times a day be any different if done with a BTW: it's recommended to run freshclam at least 6 times a day. Best regards, Tomasz Kojm -- oo. [EMAIL PROTECTED] www.ClamAV.net (\/)\. http://www.clamav.net/gpg/tkojm.gpg \..._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Mon Dec 1 16:32:54 CET 2003 pgp0.pgp Description: PGP signature
RE: [Clamav-users] Autochecking script for clamd
> > > > > > Well, but why run freshclam all the time? > > > > > > > I suppose that I could have run a cron job. But in dealing > > Am I wrong in thinking this way? That: > > You are wasting your bandwidth running freshclam (well, at > some point the virus db files are up to date so no data is > tx-ed to your box) all the time. You are making the database > servers use cpu time that could be used for other purposes. > Nothing personal here though, just a question. ;) I don't understand what you are getting at. My bandwidth is not an issue at this time. If you are suggesting that I am wasting the bandwidth and cpu time on the servers I download from, how would checking for updates 4 times a day be any different if done with a cron job versus a daemon? --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
* Lynn Duerksen <[EMAIL PROTECTED]> [20031128 20:27]: wrote: > > > echo $TIMESTAMP " restarting freshclam daemon" > > > /usr/local/bin/freshclam -d -c 4 > > > --datadir=/var/amavisd/usr/local/share/clamav --log-verbose > > > fi > > > > > > > > > FYI - Since installing 0.65 this has recorded no restarts > > > > Well, but why run freshclam all the time? > > > > I suppose that I could have run a cron job. But in dealing with the > problems with clamd I found this easiest for me to manage and track. > This computer's only role is to filter mail and pass it on to the main > mail server for 50 users. Not much overhead. I think I tried the cron > job at first but went to the daemon when troubleshooting clamd dieing. Am I wrong in thinking this way? That: You are wasting your bandwidth running freshclam (well, at some point the virus db files are upto date so no data is tx-ed to your box) all the time. You are making the database servers use cpu time that could be used for other purposes. Nothing personal here though, just a question. ;) 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 smime.p7s Description: S/MIME cryptographic signature
Re: [Clamav-users] Autochecking script for clamd
On Fri, 28 Nov 2003 [EMAIL PROTECTED] wrote: > bash is not a part of the default solaris 8 server installation. neither is > clamav, for that matter. This is quickly getting off topic -- however a number of gnu type utils were included in Solarius 8, and I am fairly sure /bin/bash was one of them. clamd, yes, is not. :-) == Chris Candreva -- [EMAIL PROTECTED] -- (914) 967-7816 WestNet Internet Services of Westchester http://www.westnet.com/ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
At 06:03 AM 11/28/2003, Christopher X. Candreva wrote: On Thu, 27 Nov 2003 [EMAIL PROTECTED] wrote: > daemontools isn't "special", whatever that means, and bash shells are 'sepcial' is in a default installation. As in there is nothing called daemontools on my Solaris 8 server. There is however both sh and bash. bash is not a part of the default solaris 8 server installation. neither is clamav, for that matter. Paul Theodoropoulos http://www.anastrophe.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
RE: [Clamav-users] Autochecking script for clamd
> > echo $TIMESTAMP " restarting freshclam daemon" > > /usr/local/bin/freshclam -d -c 4 > > --datadir=/var/amavisd/usr/local/share/clamav --log-verbose > > fi > > > > > > FYI - Since installing 0.65 this has recorded no restarts > > Well, but why run freshclam all the time? > I suppose that I could have run a cron job. But in dealing with the problems with clamd I found this easiest for me to manage and track. This computer's only role is to filter mail and pass it on to the main mail server for 50 users. Not much overhead. I think I tried the cron job at first but went to the daemon when troubleshooting clamd dieing. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
* Lynn Duerksen <[EMAIL PROTECTED]> [20031128 18:58]: wrote: > > > Subject: Re: [Clamav-users] Autochecking script for clamd > > > > > > At 08:50 PM 11/27/2003, Brian Bruns wrote: > > >Well, I should have put this in the last message. > > > > > >I guess the one I threw together doesn't require anything special > > >(doesn't need daemontools), and only needs bash. I have a habit of > > >writing things very simply to be as small and lightweight as > > possible > > >:) > > > > daemontools isn't "special", whatever that means, and bash shells are > > neither small nor lightweight. so, you lose on all counts. > > > > Special is as Special Does! > > I use a simple shell script to check for clamd and freshclam since there > have been versions where both/either died. Plus I timestamp and log. > > As far as daemontools, I could never get it to function properly on my > OpenBSD - Postfix - Amavisd system. This simple script works great. > > #!/bin/sh > # redirect output to /var/log/messages file > exec 1>>/var/log/checkclam > exec 2>&1 > TIMESTAMP=`date +"%b %e %H:%M:%S"` > # Check for clamd daemon > if ! (ps -aU amavisd | grep clamd | grep -v grep > /dev/null) > then > echo $TIMESTAMP "restarting clamd" > # Remove Stale Socket > rm /var/amavisd/clamd.sock > # Start clamd > /usr/local/sbin/clamd > # Timestamp, log and send me a note > echo $TIMESTAMP "restarting clamd" > /tmp/clamrestart.txt > cat /tmp/clamrestart.txt | mail -s "clamd restart report" > [EMAIL PROTECTED] > /dev/null > rm /tmp/clamrestart.txt > /dev/null > fi > if ! (ps -aU amavisd | grep freshclam | grep -v grep > /dev/null) > then > echo $TIMESTAMP " restarting freshclam daemon" > /usr/local/bin/freshclam -d -c 4 > --datadir=/var/amavisd/usr/local/share/clamav --log-verbose > fi > > > FYI - Since installing 0.65 this has recorded no restarts Well, but why run freshclam all the time? 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 smime.p7s Description: S/MIME cryptographic signature
RE: [Clamav-users] Autochecking script for clamd
> Subject: Re: [Clamav-users] Autochecking script for clamd > > > At 08:50 PM 11/27/2003, Brian Bruns wrote: > >Well, I should have put this in the last message. > > > >I guess the one I threw together doesn't require anything special > >(doesn't need daemontools), and only needs bash. I have a habit of > >writing things very simply to be as small and lightweight as > possible > >:) > > daemontools isn't "special", whatever that means, and bash shells are > neither small nor lightweight. so, you lose on all counts. > Special is as Special Does! I use a simple shell script to check for clamd and freshclam since there have been versions where both/either died. Plus I timestamp and log. As far as daemontools, I could never get it to function properly on my OpenBSD - Postfix - Amavisd system. This simple script works great. #!/bin/sh # redirect output to /var/log/messages file exec 1>>/var/log/checkclam exec 2>&1 TIMESTAMP=`date +"%b %e %H:%M:%S"` # Check for clamd daemon if ! (ps -aU amavisd | grep clamd | grep -v grep > /dev/null) then echo $TIMESTAMP "restarting clamd" # Remove Stale Socket rm /var/amavisd/clamd.sock # Start clamd /usr/local/sbin/clamd # Timestamp, log and send me a note echo $TIMESTAMP "restarting clamd" > /tmp/clamrestart.txt cat /tmp/clamrestart.txt | mail -s "clamd restart report" [EMAIL PROTECTED] > /dev/null rm /tmp/clamrestart.txt > /dev/null fi if ! (ps -aU amavisd | grep freshclam | grep -v grep > /dev/null) then echo $TIMESTAMP " restarting freshclam daemon" /usr/local/bin/freshclam -d -c 4 --datadir=/var/amavisd/usr/local/share/clamav --log-verbose fi FYI - Since installing 0.65 this has recorded no restarts L. A. Duerksen Technical Manager Futureware Distributing, Inc OpenBSD 3.3 amavisd-new-20030616-p2 spamassassin 2.55 postfix-2.0.10 ClamAV version 0.65 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
where can I get the daemon tools baeed one t test it please? -- Eduardo Kaftanski [EMAIL PROTECTED] Red Hat Certified Engineer/Instructor/Examiner Gerente Ingenieria LinuxCenter S.A. Canada 239 5to Piso, Providencia, Stgo de Chile. http://www.linuxcenter.cl 2745000 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
On Thu, 27 Nov 2003 [EMAIL PROTECTED] wrote: > daemontools isn't "special", whatever that means, and bash shells are 'sepcial' is in a default installation. As in there is nothing called daemontools on my Solaris 8 server. There is however both sh and bash. == Chris Candreva -- [EMAIL PROTECTED] -- (914) 967-7816 WestNet Internet Services of Westchester http://www.westnet.com/ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
[EMAIL PROTECTED] wrote: At 08:50 PM 11/27/2003, Brian Bruns wrote: Well, I should have put this in the last message. I guess the one I threw together doesn't require anything special (doesn't need daemontools), and only needs bash. I have a habit of writing things very simply to be as small and lightweight as possible :) daemontools isn't "special", whatever that means, and bash shells are neither small nor lightweight. so, you lose on all counts. To be honest, Brian's script only requires /bin/sh (it contains no bash-isms), and it does not rely on other packages besides clamd), so it should run on most UNIXens (even on DJB-free ones). Thomas --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
At 08:50 PM 11/27/2003, Brian Bruns wrote: Well, I should have put this in the last message. I guess the one I threw together doesn't require anything special (doesn't need daemontools), and only needs bash. I have a habit of writing things very simply to be as small and lightweight as possible :) daemontools isn't "special", whatever that means, and bash shells are neither small nor lightweight. so, you lose on all counts. Paul Theodoropoulos http://www.anastrophe.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
Well, I should have put this in the last message. I guess the one I threw together doesn't require anything special (doesn't need daemontools), and only needs bash. I have a habit of writing things very simply to be as small and lightweight as possible :) -- Brian Bruns The Summit Open Source Development Group Open Solutions For A Closed World / Anti-Spam Resources http://www.sosdg.org The AHBL - http://www.ahbl.org - Original Message - From: "Odhiambo Washington" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 11:23 PM Subject: Re: [Clamav-users] Autochecking script for clamd * Brian Bruns <[EMAIL PROTECTED]> [20031128 03:03]: wrote: > Heya, > > For all of you who have concerns about clamd crashing/dying, attached is a > simple shell script (ripped from the eggdrop botchk script) that basically > checks to see if clamd is running, and if not, restarts clamd. Simple to > use, and works like a charm. What advantage would the use of this script have over the one that was contibuted earlier that uses daemontools? Or did you just miss to see that one? ;-) 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: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
Crap, I guess I did miss it. Sorry :) -- Brian Bruns The Summit Open Source Development Group Open Solutions For A Closed World / Anti-Spam Resources http://www.sosdg.org The AHBL - http://www.ahbl.org - Original Message - From: "Odhiambo Washington" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 11:23 PM Subject: Re: [Clamav-users] Autochecking script for clamd * Brian Bruns <[EMAIL PROTECTED]> [20031128 03:03]: wrote: > Heya, > > For all of you who have concerns about clamd crashing/dying, attached is a > simple shell script (ripped from the eggdrop botchk script) that basically > checks to see if clamd is running, and if not, restarts clamd. Simple to > use, and works like a charm. What advantage would the use of this script have over the one that was contibuted earlier that uses daemontools? Or did you just miss to see that one? ;-) 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: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users
Re: [Clamav-users] Autochecking script for clamd
* Brian Bruns <[EMAIL PROTECTED]> [20031128 03:03]: wrote: > Heya, > > For all of you who have concerns about clamd crashing/dying, attached is a > simple shell script (ripped from the eggdrop botchk script) that basically > checks to see if clamd is running, and if not, restarts clamd. Simple to > use, and works like a charm. What advantage would the use of this script have over the one that was contibuted earlier that uses daemontools? Or did you just miss to see that one? ;-) 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 smime.p7s Description: S/MIME cryptographic signature