Ubuntu minimal install and freshclam

Discussion in 'Installation/Configuration' started by bvo007, Feb 17, 2025.

  1. bvo007

    bvo007 New Member

    Hi,
    I think I found a minor issue (correct me if I am wrong). After 3 times installing Ubuntu 24.04.1 LTS minimal (see:
    https://www.howtoforge.com/tutorial/ubuntu-24-04-minimal-server/) I found out that freshclam is not started after a reboot.
    Here my findings:
    After the intial install from ISConfig without reboot:
    root@web-test:/home/administrator# ps -ef | grep clam
    clamav 28957 1 0 13:35 ? 00:00:00 /usr/bin/freshclam -d --foreground=true
    clamav 98909 1 2 13:42 ? 00:00:34 /usr/sbin/clamd --foreground=true
    root 197589 834 0 14:01 pts/1 00:00:00 grep --color=auto clam
    You have mail in /var/mail/root
    root@web-test:/home/administrator# reboot

    After the reboot.
    root@web-test:/home/administrator# ps -ef | grep clam
    clamav 547 1 63 14:04 ? 00:00:33 /usr/sbin/clamd --foreground=true
    root 1341 1330 0 14:05 pts/1 00:00:00 grep --color=auto clam
    root@web-test:/home/administrator#

    root@web-test:/home/administrator# systemctl list-unit-files clamav-freshclam.service
    UNIT FILE STATE PRESET
    clamav-freshclam.service disabled enabled

    I enabled starting freshclam
    root@web-test:/home/administrator# systemctl enable clamav-freshclam
    Synchronizing state of clamav-freshclam.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
    Executing: /usr/lib/systemd/systemd-sysv-install enable clamav-freshclam
    Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service → /usr/lib/systemd/system/clamav-freshclam.service.
    root@web-test:/home/administrator# reboot

    Result after reboot
    root@web-test:/home/administrator# systemctl list-unit-files clamav-freshclam.service
    UNIT FILE STATE PRESET
    clamav-freshclam.service enabled enabled

    1 unit files listed.
    root@web-test:/home/administrator# ps -ef | grep clam
    clamav 549 1 71 14:07 ? 00:00:23 /usr/sbin/clamd --foreground=true
    clamav 566 1 0 14:07 ? 00:00:00 /usr/bin/freshclam -d --foreground=true
    root 1206 1194 0 14:07 pts/1 00:00:00 grep --color=auto clam
    root@web-test:/home/administrator#

    Also I updated, for my case, the line in the Ubuntu minimal tutorial.
    sudo apt install net-tools
    to
    sudo apt install net-tools iputils-ping dnsutils rsyslog
    Here I installed some tools in advance especially rsyslog.

    With this it al works for me in the logging.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. bvo007

    bvo007 New Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then its more of an issue with the auto installer. I thought we added rsyslog already in the auto-installer, but I'll check that. And freshclam should be started indeed. I thought this was the case in the past; maybe Ubuntu changed the package defaults, so we have to do this in the ai now.
     
  5. bvo007

    bvo007 New Member

    rsyslog is in the installer, as i saw, but i putted in advance before i started the script.
     

Share This Page