aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security/clamav/files/clamav-freshclam.service
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/clamav/files/clamav-freshclam.service')
-rw-r--r--recipes-security/clamav/files/clamav-freshclam.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-security/clamav/files/clamav-freshclam.service b/recipes-security/clamav/files/clamav-freshclam.service
new file mode 100644
index 0000000..0c909fb
--- /dev/null
+++ b/recipes-security/clamav/files/clamav-freshclam.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=ClamAV virus database updater
+Documentation=man:freshclam(1) man:freshclam.conf(5) http://www.clamav.net/lang/en/doc/
+# If user wants it run from cron, don't start the daemon.
+ConditionPathExists=!/etc/cron.d/clamav-freshclam
+
+[Service]
+ExecStart=/usr/bin/freshclam -d --foreground=true
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target