I am new to OpenSUSE. I’ve installed 13.2 on an old Dell PowerEdge 1900 Server (64-bit).
sam14:/home/keith # uname -a
Linux sam14 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux
I was attempting to follow the instructions from this tutorial: http://www.server180.com/2014/12/how-to-install-amavisd.html
I was able to get amavisd-new installed, although the tutorial shows to edit the "/etc/init.d/amavis init script" - there is no such file on my system!
I am also confused by several of the instructions for installing clamav.
First, the tutorial says to load “clamav-db”, but I find no package for that. I was able to load clamav and run freshclam, however systemctl reports:
sam14:/home/keith # systemctl status clamd.service
clamd.service - Clamav antivirus Deamon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; enabled)
Active: failed (Result: exit-code) since Wed 2015-01-21 22:38:10 EST; 12h ago
Process: 2146 ExecStart=/usr/sbin/clamd (code=exited, status=1/FAILURE)
Jan 21 22:37:53 sam14 clamd[2146]: Reading databases from /var/lib/clamav
Jan 21 22:37:53 sam14 clamd[2146]: Not loading PUA signatures.
Jan 21 22:37:53 sam14 clamd[2146]: Bytecode: Security mode set to "TrustSigned".
Jan 21 22:38:08 sam14 clamd[2146]: Loaded 3731127 signatures.
Jan 21 22:38:10 sam14 clamd[2146]: TCP: Bound to [127.0.0.1]:3310
Jan 21 22:38:10 sam14 clamd[2146]: TCP: Setting connection queue length to 200
Jan 21 22:38:10 sam14 clamd[2146]: LOCAL: Socket file /var/run/clamav/clamd-socket could not be bound: No such file or directory
Jan 21 22:38:10 sam14 clamd[2146]: Can't unlink the socket file /var/run/clamav/clamd-socket
Jan 21 22:38:10 sam14 clamd[2146]: ERROR: LOCAL: Socket file /var/run/clamav/clamd-socket could not be bound: No such file or directory
Jan 21 22:38:10 sam14 clamd[2146]: ERROR: Can't unlink the socket file /var/run/clamav/clamd-socket
sam14:/home/keith #
The tutorial gives instructions to create a symlink:
mkdir -p /var/run/clamav
ln -s /var/lib/clamav/clamd-socket /var/run/clamav/clamd
but that hasn’t worked for me, and I see that systemctl says it is looking for /var/run/clamav/clamd-socket, not /var/lib/clamav/clamd-socket nor /var/run/clamav/clamd !
After my first failed attempt, I deleted the symlink, then
touch /var/run/clamav/clamd-socket
and rebooted the machine to test if the system would actually remove the contents of /var/run/clamav/ as stated in the tutorial (because “/run is now a tmpfs”) but I see that is not true- that directory is not emptied on reboot.
Here’s one line from mount output:
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
So I am confused how much of my problem is due to my lack of understanding and how much might be due to invalid tutorial statements. Can someone help straighten me out on this?
Thanks,
Keith Ostertag
Harrisburg, PA USA