Mailinglist Archive: opensuse (3434 mails)

< Previous Next >
Re: [opensuse] amavisd warning failure?
  • From: "Hylton Conacher (ZR1HPC)" <hylton@xxxxxxxxxxxxxx>
  • Date: Sun, 17 Feb 2008 17:34:34 +0200
  • Message-id: <47B8540A.2030109@xxxxxxxxxxxxxx>
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



The Sunday 2008-02-17 at 12:21 +0200, Hylton Conacher (ZR1HPC) wrote:

Did a 'rcclamd restart' and it failed :( Below is error message:

Umalusi:~ # rcclamd restart
ERROR: Parse error at line 30: Option LogTime requires boolean argument.
ERROR: Parse error at line 30: Option LogTime requires boolean argument.
Shutting down Clam AntiVirus daemon done
ERROR: Parse error at line 30: Option LogTime requires boolean argument.
Starting Clam AntiVirus daemon ERROR: Parse error at line 30: Option
LogTime requires boolean argument.
ERROR: Can't open/parse the config file /etc/clamd.conf
startproc: exit status of parent of /usr/sbin/clamd: 1
failed

What now?

Obvious! Open "/etc/clamd.conf", search for line number 30, and correct it.

Doh!! Tnx Carlos for directing me. Having a look at the clamd.conf file
I see that line 30 relates to the LogTime entry however on further
checking I see that the Tab creates a full stop in Kate if you press Tab
to advance a couple of spaces to put a comment in. Removed the '.' and
problems went away.

Next problem was the script to update the clamav signatures.

From Sandy:
--------------------
#!/bin/sh
# update of clam-av signatures

EMAIL=postmaster@xxxxxxxxxxx
tempfile=`mktemp`

freshclam > $tempfile
statusclam=$?
#echo "test clam" > $tempfile
#statusclam=0

case "$statusclam" in

0 ) echo "Clamav has gotten new signatures!"

;;
1 ) echo "Clamav is up-to-date'
;;
255) cat $tempfile|mail -s "Clamav couldn't update: $statusclam" $EMAIL
;;
esac

rm $tempfile
--------------------


#statusclam=0

case "$statusclam" in

0 ) echo "Clamav has gotten new sigatures!"

;;
1 ) echo "Clamav is up-to-date"
;;
255) cat $tempfile | mail -s "Clamav couldn't update: $statusclam" $EMAIL
;;
esac

rm $tempfile
-------------------

I assume that What should I put my email address in place of
EMAIL=postmaster@xxxxxxxxxxx?

Tnx
Hylton
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >