[Unit] Description=ClamAV virus database updater in chroot Documentation=man:freshclam(1) man:freshclam.conf(5) https://www.clamav.net/documents # If user wants it run from cron, don't start the daemon. ConditionPathExists=!/etc/cron.d/clamav-freshclam-chroot [Service] RootDirectory=/chroot/maild RootDirectoryStartOnly=no ExecStart=/usr/bin/freshclam -d --foreground=true StandardOutput=syslog [Install] WantedBy=multi-user.target