Thank you, Dennis and Matus and all,

I can did it !
I'm just only changed from "clamd@scan" to "clamd.scan" lol

# uname -r
3.10.0-123.el7.x86_64

# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)

# ls -lth /usr/lib/systemd/system/clamd@.service
-rw-r--r-- 1 root root 231  4月 30 03:38 /usr/lib/systemd/system/clamd@.service

# ls -lth /etc/rc.d/init.d/clamd.scan
-rwxr-xr-x 1 root root 138  4月 30 03:46 /etc/rc.d/init.d/clamd.scan

  --> Oh, another permissions, "clamd@.service" and "clamd.scan".


# systemctl stop clamd@scan
# systemctl start clamd.scan

# systemctl status clamd.scan
clamd.scan.service - SYSV: The clamd server running for scan
   Loaded: loaded (/etc/rc.d/init.d/clamd.scan)
   Active: active (running) since 月 2015-06-22 18:55:27 JST; 42s ago
  Process: 3110 ExecStart=/etc/rc.d/init.d/clamd.scan start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/clamd.scan.service
           mq3121 clamd.scan -c /etc/clamd.d/scan.conf --pid 
/var/run/clamd.scan/clamd.pid

 6月 22 18:54:58 localhost.localdomain clamd[3121]: Self checking every 600 
seconds.
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/boot'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/root'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/home/clamav'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/tmp'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Protecting 
directory '/var/tmp'
 6月 22 18:54:58 localhost.localdomain clamd[3121]: ScanOnAccess: Max file size 
limited to 5242880 bytes
 6月 22 18:55:27 localhost.localdomain clamd.scan[3110]: Starting clamd.scan: [  
OK  ]
 6月 22 18:55:27 localhost.localdomain systemd[1]: Started SYSV: The clamd 
server running for scan.

  --> I can see "Starting clamd.scan: [  OK  ]".

# ls -lth eicar.com
-rw-r--r-- 1 root root 68  9月  5  2006 eicar.com

# clamdscan -c /etc/clamd.d/scan.conf
/tmp/eicar.com: Eicar-Test-Signature FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 27.225 sec (0 m 27 s)

By the way, What is it difference "clamd@.service" and "clamd.scan" ?

thanks,
om-nix
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to