LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2018, 02:55 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 10
Post Configure ClamAV.


Hello.
I used https://www.hostinger.com/tutorials/...v-centos7#gref and https://linux-audit.com/install-clam...ing-freshclam/ to install ClamAV on CentOS 7 x86_64 but when I run below command then I got an error:
Code:
$ sudo systemctl start clamd@scan.service
Failed to start clamd@scan.service: Unit is not loaded properly: Invalid argument.
See system logs and 'systemctl status clamd@scan.service' for details.
But:
Code:
$ sudo systemctl status clamd
● clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-12-26 12:21:11 +0330; 117ms ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 30336 (clamd)
   CGroup: /system.slice/clamd.service
           └─30336 /usr/sbin/clamd -c /etc/clamd.d/clamd.conf --foreground=yes

Dec 26 12:21:11 localhost.localdomain systemd[1]: Started clamd scanner () daemon.
Dec 26 12:21:11 localhost.localdomain clamd[30336]: Received 0 file descriptor(s) from systemd.
Dec 26 12:21:11 localhost.localdomain clamd[30336]: clamd daemon 0.100.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Dec 26 12:21:11 localhost.localdomain clamd[30336]: Running as user clamscan (UID 985, GID 978)
Dec 26 12:21:11 localhost.localdomain clamd[30336]: Log file size limited to 1048576 bytes.
Dec 26 12:21:11 localhost.localdomain clamd[30336]: Reading databases from /var/lib/clamav
Dec 26 12:21:11 localhost.localdomain clamd[30336]: Bytecode: Security mode set to "TrustSigned".

$ sudo systemctl status clam-freshclam.service 
● clam-freshclam.service - freshclam scanner
   Loaded: loaded (/usr/lib/systemd/system/clam-freshclam.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-12-26 11:34:54 +0330; 47min ago
 Main PID: 28461 (freshclam)
   CGroup: /system.slice/clam-freshclam.service
           └─28461 /usr/bin/freshclam -d -c 4

Dec 26 11:34:54 localhost.localdomain systemd[1]: Starting freshclam scanner...
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: freshclam daemon 0.100.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: ClamAV update process started at Wed Dec 26 11:34:54 2018
Dec 26 11:34:54 localhost.localdomain systemd[1]: Started freshclam scanner.
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: daily.cvd is up to date (version: 25241, sigs: 2190083, f-level: 63, bui...ynman)
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: bytecode.cvd is up to date (version: 327, sigs: 91, f-level: 63, builder: neo)
Dec 26 11:34:54 localhost.localdomain freshclam[28461]: --------------------------------------
Hint: Some lines were ellipsized, use -l to show in full.
Why?

Thank you.
 
Old 12-26-2018, 03:46 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,421

Rep: Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062Reputation: 5062
Quote:
Originally Posted by hack3rcon View Post
Why?
Noone can tell you, because you never tell us what did you really make and what did really happen. Do you think we have any extra power to see your hands/mind?

based on this: https://www.linuxquestions.org/quest...ml#post5941334
and this: https://www.linuxquestions.org/quest...av-4175644937/
please do not open several threads on the same topic.
Please mark a thread solved if you think that case is solved.
I would try to reinstall clamav and check if everything was really ok.
 
Old 12-26-2018, 05:26 AM   #3
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,514

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
I donít know about you, but my first reaction would be to See system logs and 'systemctl status clamd@scan.service' for details.

Without those details, I am afraid nobody can say anything about your problem.

Last edited by berndbausch; 12-26-2018 at 05:27 AM.
 
Old 12-26-2018, 05:29 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
I forgot to remove "@" from below line in "/usr/lib/systemd/system/clamd@scan.service" file:
Code:
.include /lib/systemd/system/clamd@.service
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mimedefang clamav vs clamav-milter digitolx Linux - Server 0 10-20-2010 03:45 PM
Configure postfix with ClamAV MailScanner Dovecot Ilohamail shipon_97 Linux - Newbie 2 04-22-2010 01:51 PM
file-scan-clamav-1.8 or clamav-0.93.1 invader44 Linux - Newbie 1 12-29-2009 08:49 AM
configure clamav and getmail bmorency Linux - Server 0 02-15-2008 12:41 PM
configure clamsmtp with clamav shipon_97 Linux - Enterprise 0 05-09-2006 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration