Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Общие вопросы
  • Search

Не запускается clamv - unrecognized option `--nofork=yes'

Общие вопросы о панели управления Vesta
Post Reply
  • Print view
Advanced search
11 posts
  • Previous
  • 1
  • 2
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: Не запускается clamv - unrecognized option `--nofork=yes'
  • Quote

Post by baijianpeng » Tue Sep 27, 2016 4:02 pm

skurudo wrote:

Code: Select all

cp /etc/systemd/system/clamd.service /root/
perl -pi -e 's|nofork|foreground|g' /etc/systemd/system/clamd.service
systemctl daemon-reload
systemctl restart clamd.service
Today I met the same problem: my ClamAV can not run, when checking status, the result is:

Code: Select all

[root clamav]# systemctl status clamd
● clamd.service - clamd scanner (clamd) daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; enabled; vendor preset: disabled)
   Active: activating (start-pre) since Tue 2016-09-27 23:53:52 CST; 2ms ago
  Process: 13674 ExecStart=/usr/sbin/clamd -c /etc/clamd.conf --nofork=yes (code=exited, status=1/FAILURE)
  Process: 13671 ExecStartPre=/usr/bin/chown -R clam.mail /var/run/clamav (code=exited, status=0/SUCCESS)
 Main PID: 13674 (code=exited, status=1/FAILURE);         : 13681 (systemd)
   CGroup: /system.slice/clamd.service
           └─control
             └─13681 /usr/lib/systemd/systemd --switched-root --system --deserialize 21

Sep 27 23:53:52 iZ239i3uk4bZ systemd[1]: Starting clamd scanner (clamd) daemon...
Then I used above trick:

Code: Select all

[root clamav]# perl -pi -e 's|nofork|foreground|g'  /lib/systemd/system/clamd.service
This fixed the issue!

Thank you!
Top


Post Reply
  • Print view

11 posts
  • Previous
  • 1
  • 2

Return to “Общие вопросы”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password