When Clamav installed work fine but after reboot cannot start.
Code: Select all
[root@DKM ~]# systemctl status clamd.service
clamd.service - SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server.
Loaded: loaded (/etc/rc.d/init.d/clamd)
Active: failed (Result: exit-code) since Sat 2014-07-12 10:44:33 EEST; 47s ago
Process: 885 ExecStart=/etc/rc.d/init.d/clamd start (code=exited, status=1/FAILURE)
Jul 12 10:44:33 DKM clamd[891]: TCP: Bound to address 127.0.0.1 on port 3310
Jul 12 10:44:33 DKM clamd[891]: TCP: Setting connection queue length to 30
Jul 12 10:44:33 DKM clamd[891]: LOCAL: Socket file /var/run/clamav/clamd.sock could not be bound: No such file or directory
Jul 12 10:44:33 DKM clamd[891]: Can't unlink the socket file /var/run/clamav/clamd.sock
Jul 12 10:44:33 DKM clamd[885]: ERROR: LOCAL: Socket file /var/run/clamav/clamd.sock could not be bound: No such file or directory
Jul 12 10:44:33 DKM clamd[885]: ERROR: Can't unlink the socket file /var/run/clamav/clamd.sock
Jul 12 10:44:33 DKM clamd[885]: [FAILED]
Jul 12 10:44:33 DKM systemd[1]: clamd.service: control process exited, code=exited status=1
Jul 12 10:44:33 DKM systemd[1]: Failed to start SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server..
Jul 12 10:44:33 DKM systemd[1]: Unit clamd.service entered failed state.
Code: Select all
[root@DKM ~]# mkdir /var/run/clamav
[root@DKM ~]# chown -R clamav:clamav /var/run/clamav
[root@DKM ~]# chmod -R 700 /var/run/clamav
[root@DKM ~]#
[root@DKM ~]# systemctl start clamd.service
[root@DKM ~]#
[root@DKM ~]# systemctl status clamd.service
clamd.service - SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server.
Loaded: loaded (/etc/rc.d/init.d/clamd)
Active: active (running) since Sat 2014-07-12 10:56:57 EEST; 9s ago
Process: 996 ExecStart=/etc/rc.d/init.d/clamd start (code=exited, status=0/SUCCESS)
Main PID: 999 (clamd)
CGroup: /system.slice/clamd.service
└─999 clamd
Jul 12 10:56:56 DKM clamd[999]: ELF support enabled.
Jul 12 10:56:56 DKM clamd[999]: Detection of broken executables enabled.
Jul 12 10:56:56 DKM clamd[999]: Mail files support enabled.
Jul 12 10:56:56 DKM clamd[999]: OLE2 support enabled.
Jul 12 10:56:56 DKM clamd[999]: PDF support enabled.
Jul 12 10:56:56 DKM clamd[999]: SWF support enabled.
Jul 12 10:56:56 DKM clamd[999]: HTML support enabled.
Jul 12 10:56:56 DKM clamd[999]: Self checking every 600 seconds.
Jul 12 10:56:57 DKM clamd[996]: [ OK ]
Jul 12 10:56:57 DKM systemd[1]: Started SYSV: Clam AntiVirus Daemon is a TCP/IP or socket protocol server..
Code: Select all
[root@DKM ~]# Linux DKM 3.10.0-123.4.2.el7.x86_64 #1 SMP Mon Jun 30 16:09:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
Clamav ver: clamav-0.98.4-1.el7.rf.x86_64.rpm clamav-db-0.98.4-1.el7.rf.x86_64.rpm clamd-0.98.4-1.el7.rf.x86_64.rpm
Thanks.