Clamav-daemon no started after reboot command on ssh

Hi guys, in new version hestia 1.9.4 after reboot comand in ssh-terminal NO START clamav-daemon. see pics

Hi,

Check whether the service is really up and running.

systemctl status clamav-daemon --no-pager -l

Also, show whether the dir /etc/sysconfig/ exists in your server.

ls -la /etc/sysconfig/
   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

14 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

New release '24.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Thu Oct  2 13:55:50 2025 from 66.220.203.0
root@server:~# systemctl status clamav-daemon --no-pager -l
â—Ź clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; disabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: active (running) since Thu 2025-10-02 16:49:43 EDT; 29min ago
TriggeredBy: â—Ź clamav-daemon.socket
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://docs.clamav.net/
    Process: 42386 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
    Process: 42387 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
   Main PID: 42388 (clamd)
      Tasks: 2 (limit: 16721)
     Memory: 1.5G
        CPU: 24.278s
     CGroup: /system.slice/clamav-daemon.service
             └─42388 /usr/sbin/clamd --foreground=true

Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> OLE2 support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> PDF support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> SWF support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> HTML support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> XMLDOCS support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> HWP3 support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> OneNote support enabled.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> Self checking every 3600 seconds.
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> Listening daemon: PID: 42388
Oct 02 16:50:08 server.emkolbaski.net clamd[42388]: Thu Oct  2 16:50:08 2025 -> MaxQueue set to: 100

root@server:~# ls -la /etc/sysconfig/
ls: cannot access '/etc/sysconfig/': No such file or directory
root@server:~#

Clamav is running.

Show the output of these commands:

v-list-sys-info
v-list-sys-services
root@server:~# v-list-sys-info
HOSTNAME               OS      VER    ARCH    HESTIA  RELEASE  UPTIME  LA       
--------               --      ---    ----    ------  -------  ------  --       
server.emkolbaski.net  Ubuntu  22.04  x86_64  1.9.4   release  165     0.05  /  0.01  /  0.00
root@server:~# v-list-sys-services
NAME           STATE    CPU  MEM   UPTIME
----           -----    ---  ---   ------
apache2        running  0    470   165
php7.4-fpm     running  0    9     164
php8.0-fpm     running  0    9     164
php8.1-fpm     running  0    9     164
php8.2-fpm     running  0    20    164
php8.3-fpm     running  0    9     164
php8.4-fpm     running  0    11    164
nginx          running  0    24    165
bind9          running  0.1  114   165
exim4          running  0.1  118   164
dovecot        running  0    0     164
clamav-daemon  running  0.8  1398  49
spamassassin   running  0    280   164
mariadb        running  0.1  724   41
proftpd        running  0    1     165
cron           running  0    0     164
ssh            running  0    7     164
iptables       running  0    0     0
fail2ban       running  0.3  135   165
r

same, after reboot no start clamav-daemon

Ok, I didn’t see this:

     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; disabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: active (running) since Thu 2025-10-02 16:49:43 EDT; 29min ago
TriggeredBy: â—Ź clamav-daemon.socket

The service is disabled by default and is triggered (started) when something tries to connect to clamav-daemon.socket, so what you are experiencing is the expected default behaviour.

If you want the service always up and running, enable it.

systemctl enable clamav-daemon.service

If you reboot after that, the service should be up and running.

th…you very much!! now work after reboot

yes work only after reboot, but see here look like clamav-daemon.service NO work

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

14 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

New release '24.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Thu Oct  2 18:14:23 2025 from 66.220.203.0
root@server:~# v-list-sys-inf
v-list-sys-inf: command not found
root@server:~# v-list-sys-services
NAME           STATE    CPU  MEM   UPTIME
----           -----    ---  ---   ------
apache2        running  0    472   106
php7.4-fpm     running  0    9     106
php8.0-fpm     running  0    9     106
php8.1-fpm     running  0    10    106
php8.2-fpm     running  0    9     106
php8.3-fpm     running  0    9     106
php8.4-fpm     running  0    11    106
nginx          running  0    32    106
bind9          running  0    113   106
exim4          running  0    59    106
dovecot        running  0    0     106
clamav-daemon  running  0.3  1398  106
spamassassin   running  0    280   106
mariadb        running  0    680   106
proftpd        running  0    1     106
cron           running  0    0     106
ssh            running  0    4     105
iptables       running  0    0     0
fail2ban       running  0.3  135   106
root@server:~#

I don’t understand, that output shows the clamav-daemon running:

1 Like
ot@server:~# clamav-daemon  running  0.3  1398  106
clamav-daemon: command not found
root@server:~#

Why are you trying to execute that text? That doesn’t make any sense.
Really, Clamav is running.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.