blob: f13191fccf690bddb015b282e4d199aa09233605 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301[Unit]
2Description=Clam AntiVirus userspace daemon
3Documentation=man:clamd(8) man:clamd.conf(5) http://www.clamav.net/lang/en/doc/
4Requires=clamav-daemon.socket
5# Check for database existence
6ConditionPathExistsGlob=/usr/share/clamav/main.{c[vl]d,inc}
7ConditionPathExistsGlob=/usr/share/clamav/daily.{c[vl]d,inc}
8
9[Service]
10ExecStart=/usr/sbin/clamd --foreground=true
11# Reload the database
12ExecReload=/bin/kill -USR2 $MAINPID
13StandardOutput=syslog
14
15[Install]
16WantedBy=multi-user.target
17Also=clamav-daemon.socket