显示 clamav 的状态时,我看到以下内容
clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/clamav-daemon.service.d
└─extend.conf
Active: active (running) since Fri 2020-02-07 12:03:15 UTC; 1s ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Process: 3483 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
Process: 3482 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
Main PID: 3484 (clamd)
Tasks: 1 (limit: 614)
CGroup: /system.slice/clamav-daemon.service
└─3484 /usr/sbin/clamd --foreground=true
Feb 07 12:03:15 vps48064754.local systemd[1]: Starting Clam AntiVirus userspace daemon...
Feb 07 12:03:15 vps48064754.local systemd[1]: Started Clam AntiVirus userspace daemon.
我如何检查此错误的原因:process 3482 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
?如您所见,它仍在运行,所以我不确定发生了什么。
另外,运行 htop 时,我看到 clamav 两次,并且占用 800+ 内存:
3532 clamav 20 0 1113M 866M 16960 S 0.0 42.3 0:00.00 /usr/sbin/clamd --foreground=true
3484 clamav 20 0 1113M 866M 16960 S 0.0 42.3 0:15.20 /usr/sbin/clamd --foreground=true
3484 的时间是 0:15,而 3532 的时间是 0:00。我读到这是 clamav 的工作方式,但如果有某种每小时唤醒一次、执行魔法然后进入睡眠状态的作业呢?
谢谢